• 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

Adding custom body class to the custom archive pages

PHP DOTENV unable to load env vars

User pool client {id}does not exist

Dropdown with current value from Mysql

PDOException SQLSTATE[HY000] [2002] No such file or directory

XSS attack still works despite htmlspecialchars() doing its work

Yii Ajax Submit button

Multiple order by in WooCommerce

Cant seem to get the Pagination to work on my WooCommerce REST API application?

disable two buttons after clicking another button

Create a zip file and download it

How do I pass the dynamic output of a php variable or php function to a CSS variable?

Make Shipping Method fields Mandatory on Woocommerce checkout page

PHP, how to convert Int value to Week days

Adding Multiple Custom Post Types in Wordpress

About Contact Privacy policy Terms and conditions