Simple Blog Card

Descripción

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.

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
);

Capturas

  • View
  • View2
  • Block
  • Block search
  • Settings

Bloques

Este plugin proporciona 1 bloque.

  • Simple Blog Card Get OGP and display blog card.

Instalación

  1. Upload simple-blog-card directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

none

Reseñas

5 de febrero de 2024
It is simple and has enough functionality for my needs.If you use this, you can treat the link cards as blocks and set preferences of each card from the block editor.Many link card plug-ins cannot handle non-utf8 encoded pages correctly, but you can set proper encodings manually if you use this.I've been using Pz-LinkCard and it is also good, but I prefer this one.
21 de noviembre de 2022
I've been searching for easy to use a link preview block and tested plenty, this Blog Card plugin is really simple to use.
6 de octubre de 2020
I like it al lot, it is the forst one that's fully working on all sites. It collects the right preview immage and indeed, for the user it works simple. Ik like it a lot.
Leer todas las 3 reseñas

Colaboradores y desarrolladores

«Simple Blog Card» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Simple Blog Card» ha sido traducido a 1 idioma local. Gracias a los traductores por sus contribuciones.

Traduce «Simple Blog Card» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

[2.09] 2024/03/26

  • Fix – Change in the way css are loaded.
  • Fix – Template.

[2.08] 2024/03/25

  • Tweak – Added explanation of search terms for blocks to the admin screen.
  • Fix – Template.

[2.07] 2024/03/25

  • Tweak – Added explanation of search terms for blocks to the admin screen.

[2.06] 2024/03/25

  • Tweak – Added explanation of search terms for blocks to the admin screen.

[2.05] 2024/03/24

  • Fix – Image size issue with default template.

[2.04] 2024/03/24

  • Added – Templates can be selected in the admin panel.
  • Added – Add new template. Special thanks ishitaka.

[2.03] 2024/03/23

  • Fix – Template internal linking issues.
  • Added – Adding a description to the management screen.

[2.02] 2024/03/23

  • Fix – Display problem when ‘Border color width’ is 0.

[2.01] 2024/03/23

  • Removed – CSS saving in the admin panel has been removed.
  • Added – Allowing the filter to load CSS from a separate file.
  • Added – The image position can be changed to the left or right.
  • Tweak – ‘Border color width’ can now be set to 0.
  • Fix – Reviewed template files.

[2.00] 2024/03/20

  • Added – Customization by template files.

[1.41] 2024/02/09

  • Fix – Error that occurs when the title or description cannot be retrieved.

[1.40] 2024/02/04

  • Added – Added ‘encoding’ option. Can specify the character encoding of site.

[1.39] 2024/01/19

  • Fix – Deprecated error in php8.2. mb_convert_encoding => mb_encode_numericentity.
  • Fix – Deprecated error in php8.2. Dynamic Property Issues.

1.38

Fixed an error that occurred when the URL was a file.

1.37

Site information retrieval was changed from cURL to wp_remote_get.

1.36

Rebuild blocks.

1.35

Rebuild blocks.

1.34

Rebuild blocks.

1.33

Supported WordPress 6.4.
PHP 8.0 is now required.

1.32

Fixed an issue where protected content could be retrieved with subscriber user. ThanksBob.

1.31

Fixed problem of XSS via shortcode. ThanksDmitrii Ignatyev.

1.30

Fixed a ratio problem with portrait images.

1.29

Fixed problem with sites without description.

1.28

Fixed problem with sites without thumbnails.

1.27

Fixed the display of thumbnails in the same host.

1.26

Host names are now hidden within the same host.

1.25

Host name is now displayed.

1.24

Added escaping of html special characters.

1.23

Fixed a problem in which the site name was not displayed on some sites.
Fixed a problem with insufficient string retrieval at some sites.
The maximum length of the description in the settings has been changed to 300.

1.22

Fixed a translation issue.

1.21

WordPress 6.1 is now supported.

1.20

Fixed a problem with parameters.

1.19

Supported WordPress 6.0.

1.18

Fixed a problem with parameters.
Rebuilt the block.

1.17

Supported WordPress 5.7.

1.16

Added the ability to modify CSS in the admin panel.

1.15

Separated some style CSS for cards as files.

1.14

Added the ability to change the line height of the title, the line height of the description, and the width of the vertical line color.

1.13

Supported WordPress 5.6.

1.12

Added description of shortcode.

1.11

Fixed a translation issue.

1.10

The block now supports ESNext.

1.09

Fixed block loading error.

1.08

Supported open new tab.

1.07

Cache interval change.
Fixed problem of timeout.

1.06

Add cache removal option.
Add timeout change option.

1.05

Changing the timeout value.

1.04

Added cache function.

1.03

Added input place of URL.

1.02

Changed the parsing method.

1.01

Fixed OGP acquisition issue.

1.00

Initial release.