• 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

Implode array with array of glue strings

getting error while enter Command => php artisan route:list

Adding Multiple Custom Post Types in Wordpress

Last order would be re-order in wooCommerce. How is it possible?

Live search query using JS and PHP for QA forum

How to use PHPCBF to fix one issue at a time?

SMTP "Error: DATA not accepted from server!" Opencart 2.3 on InMotionHosting

How to get monthly wise data in laravel

Woocommerce Checkout - Add conditional field required if one field is filled

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

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

How to execute sql code based on fetch array

Lexik JWT authentication problem "Invalid credentials"

How to create a individual template for page or post in custom plugin?

Make survey at laravel 5.4 and MySQL

About Contact Privacy policy Terms and conditions