• 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 display a view on laravel 8 and not have a 404 NOT FOUND page?

Stop caching for PHP 5.5.3 in MAMP

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Laravel csrf token mismatch for ajax POST Request

Getting public posts of a random user from Facebook API

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Get data from accuweather api url

protect my blog content

WooCommerce: Add/display Product or Variation custom field everywhere

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

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

How to execute sql code based on fetch array

Display the default discounted price and percentage on Woocommerce products

Form Validation and Submission to database

MySQL - Connection failed: No route to host

About Contact Privacy policy Terms and conditions