• 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 add a custom field to all Woocommerce attribute terms using add_action

str_word_count() function doesn't display Arabic language properly

Laravel Carbon throws error The format separator does not match

OctoberCMS / Anonymous Global Scope

Call authenticate manually in router middleware

Render the content of default_filter.php in Joomla front-end

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

PHP date() with timezone?

Limit of log line written to Apache Errorlog from mod php error_log

Installing Composer - Internal Error

HTML and PHP in one file

Laravel database insert with combining array and string

Sentry + Laravel: how to log an already catched Exception?

Laravel insert dynamic input values with radio button

PHP web3 ERC20 token function call

About Contact Privacy policy Terms and conditions