• 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

How to add a heading in between checkout fields of WooCommerce

WAMP Virtual Host not working

How to KeyBy where multiple items have the same key

Batch request Google Calendar php API

How in Laravel run JavaScript code stored in php variable?

WooCommerce Additional Information - if empty, hide

Updating and Synchronizing Woocommerce Subscriptions to Custom Date

Parameter is not sent to Laravel route in Ajax

WordPress Subquery returns more than 1 row on SELECT

Cache clear probem in Larave

How to unlink image from folder?

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

Custom post type single page not working

How to loop a tree array with unknown depth and get array blocks?

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

About Contact Privacy policy Terms and conditions