• 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

Minimum order amount except for specific shipping method in WooCommerce

Return new collection without modifying original collection

Sum array values

Symfony 4: "Autowire: you should configure its value explicitly."

Artisan, creating tables in database

Display the default discounted price and percentage on Woocommerce products

I can't delete my image when it is liked because of the foreign key in mysql

Star and Half Star Rating in Laravel

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

Cache clear probem in Larave

Remove product downloads section in woocommerce email notifications

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

Wordpress add responsive srcset header image to theme

How to get page number on dompdf PDF when using "view"

About Contact Privacy policy Terms and conditions