Simple Blog Card

Blog card

  • Generated with shortcode
  • Generated with block
  • Can specify the number of characters displayed in the description.
  • Displays an ogp image.
  • Can specify the size of the displayed ogp image.
  • Can change the title and description.

Warning

A redirect loop occurs when all three of the following factors are met:
* When two sites with different domains embed “Simple Blog Card” for each other on their top pages.
* When two sites with different domains are on the same server (same IP address).
* When the ”Simple Blog Card” caches of two sites on different domains are empty.

How it works

Customize

  • Template files allow for flexible customization.
  • The default template file is template/simpleblogcard-template.php. Using this as a reference, you can specify a separate template file using the filters below.
/** ==================================================
 * Filter for template file.
 *
 */
add_filter(
    'simple_blog_card_generate_template_file',
    function () {
        $wp_uploads = wp_upload_dir();
        $upload_dir = wp_normalize_path( $wp_uploads['basedir'] );
        $upload_dir = untrailingslashit( $upload_dir );
        return $upload_dir . '/tmp/simpleblogcard-template.php';
    },
    10,
    1
);
  • CSS files can be set separately. Please see the filters below.
/** ==================================================
 * Filter for CSS file.
 *
 */
add_filter(
    'simple_blog_card_css_url',
    function () {
        $wp_uploads = wp_upload_dir();
        $upload_url = $wp_uploads['baseurl'];
        if ( is_ssl() ) {
            $upload_url = str_replace( 'http:', 'https:', $upload_url );
        }
        $upload_url = untrailingslashit( $upload_url );
        return $upload_url . '/tmp/simpleblogcard.css';
    },
    10,
    1
);
  1. Upload simple-blog-card directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

WP-CLI

Can delete and regenerate the cache with the following WP-CLI command. It would be beneficial to register it with the server’s cron.
* wp simpleblogcard_refresh

سوالات متداول

none

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
2.38 37 کیلوبایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (3 نظر)

قیمت:

رایگان

نگارش

2.38

آخرین انتشار

12 اردیبهشت 1405

آخرین بروزرسانی

4 ماه پیش

نصب های فعال

3,000+

نگارش وردپرس

وردپرس 6.6+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 8.0+

نسخه ها

1 نسخه