Make featured image link to blog post

Descrição

Adds a function to the function.php file of your current active theme. This function will make the featured image link back to the blog the image was inserted.
This way you do not have to change your themes files and your changes will not be gone after a theme update.

Make sure your theme doesn’t allready have this function. Some themes allready have this function by default.

Ecrãs

  • Example of the php code used.

Instalação

  1. Upload the plug-in files to the \\’/wp-content/plugins/\\’ folder, or install from the WordPress plugin library.
  2. Activate the plug-in from the WordPress plug-in menu.

Perguntas frequentes

Q: How does this plug-in work?

A: It just adds a simple code to the function.php file of you active theme. This will add a link to the featured image which is added to a blog.

Q: Which code is added?

A: function wpb_autolink_featured_images( $html, $post_id, $post_image_id ) {$html = ‘‘ . $html . ‘‘; return $html;} add_filter( ‘post_thumbnail_html’, ‘wpb_autolink_featured_images’, 10, 3 );

Q: Do I need to change anything in my settings?

A: Nope. Just activate the plug-in and add a featured image to a post. That is it.

Avaliações

Este plugin não tem avaliações.

Contribuidores e programadores

“Make featured image link to blog post” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

“Make featured image link to blog post” foi traduzido para 1 locale. Obrigado aos tradutores pelas suas contribuições.

Traduza o “Make featured image link to blog post” para o seu idioma.

Interessado no desenvolvimento?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Registo de alterações

1.4

  • Updated and tested up to WordPress version 5.8

1.3

  • Minor code change

1.2

  • Updated and tested up to WordPress version 5.7

1.1

  • Minor changes in the tags and description

1.0

  • First release of the plugin.