• 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

GuzzleHttp Hangs When Using Localhost

Display a product custom field only in WooCommerce Admin single orders

Use Python plotly chart in PHP

Can't exclude directories from .htaccess mobile redirect?

Send Outlook 2010 email using PHP

Detect emoticons in string

Limit WooCommerce products in cart only from one custom taxonomy

How to submit the custom form data in database in WordPress without plugin using ajax?

Can we define variables in `.tpl` files?

Losing session data after POST from third party website

IlluminateDatabaseQueryException could not find driver [duplicate]

Create a zip file and download it

passwordless LDAP login and get user information using Kerberos ticket in PHP

Sentry on Symfony: how to exclude `NotFoundHttpException`

woocommerce get_order_report_data to show order_item_id

About Contact Privacy policy Terms and conditions