• 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

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

PHP random string generator

Split array into 4-element chunks then implode into strings

Prestashop cUrl Login

Change user role if checkout custom checkbox is checked in WooCommerce

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

get folder directory from input type file - PHP

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

Yii2: How to download backup files using spanjeta/yii2-backup?

How do I remove this delivery notification from here?

Adding one microsecond to Datetime object in PHP

How to find phpcs current default standard

Calculating Median of an array in PHP

Auto increment id JSON

About Contact Privacy policy Terms and conditions