• 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 prevent float variables displaying as scientific notation when printing [duplicate]

Unable to guess the mime type as no guessers are available Laravel 5.2

merge all files in directory to one text file

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

Timber: Single post pagination does not work (wp_link_pages)

How to make dot match newline characters using regular expressions

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

Laravel websockets AWS EC2 - Connection failed

args[max_input] woocommerce if statement confused

Add restriction to WooCommerce coupons by allowed user ID

Converting array to string and then back in PHP

Laravel post contact form giving me error 419

Get WooCommerce products from specific category

Laravel implode array items to new lines

str_word_count() function doesn't display Arabic language properly

About Contact Privacy policy Terms and conditions