• 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

Implode array with array of glue strings

yii2 and mssql insert varbinary into model

Additional price based on cart item count in WooCommerce

Can we define variables in `.tpl` files?

Two buttons one form

Laravel 8 Multiple Relationships for Factory

Filter WooCommerce related products by Polylang language

Parameter is not sent to Laravel route in Ajax

How to fix Call to undefined method AppModelsTableName::factory?

How to get values inside <![CDATA[values]] > using php DOM?

Login if user is active using Laravel Breeze

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

phpseclib 2.0 can not use Composer to create autoload

Wordpress 'post_type_link' hides permalink

calling server using nusoap with complextype

About Contact Privacy policy Terms and conditions