• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Wordpress how to get the post thumbnail inside a figure tag

phpwordpresswordpress-themingthumbnailscustom-wordpress-pages


PHP Snippet 1:

<figure class="post_thumbnail">
    <?php if(has_post_thumbnail()) { echo the_post_thumbnail('full'); }; ?>
</figure>

Related Snippets

Xdebug can't connect back to Docker host

Explode not working properly with dash

PHP: remove filename from path

Timber: Single post pagination does not work (wp_link_pages)

How to properly start Laravel 8 with Bootstrap & authentication

Applying programmatically a coupon to an Order in WooCommerce3

Redis Command To Sort Keys

SQLSTATE[HY000]: General error: 1 table posts has no column named *

PHP: How to solve ob_start() in combination imagepng() issue?

Minimum order amount except for specific shipping method in WooCommerce

CodeIgniter force_download is not working

Clear javascript source cache laravel 5.8

PHPSpreadsheet - How Do I Use Auto Migration Tool

PHP Get value from JSON [duplicate]

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

About Contact Privacy policy Terms and conditions