• 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

PHP Warning: Module already loaded in Unknown on line 0

Transform array, set each array element with parent key php

How Can I Do LIMIT 1, 2 In WP_Query

Not able to access model in the controller mautic

Adding the custom page with add_menu_page function on Wordpress

PHP: Insert marker every 3 iterations

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

WordPress - Dynamically add user ID to the end of a URL

Error converting docx to pdf using Unoconv

Telegram bot doesn't answer

Store / Website Column in Magento 2 Admin Grid - Custom Module

How to add automatically collapse/expand in content wordpress (single.php)?

virtctl works when executed via command line but not from php exec()

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

How to skip cart page on woocomerce for certain products only?

About Contact Privacy policy Terms and conditions