• 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

dompdf and img tag, image wont show

How to Create WooCommerce Subscription Product via. REST API?

how to hide previous markers when new markers added in google map javascript api

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

Sum array values

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

How update php.ini on a Mac OS X Mojave?

How do I truncate a decimal in PHP?

html-php form submission after validation through JavaScript [closed]

cakephp save drag and drop list order to database

WooCommerce Subscriptions: Remove role on cancelled subscription

Laravel Factory not calling callback 'afterCreating'

Detect a fetch request in PHP

Prestashop cUrl Login

How to get company posts from LinkedIn via API?

About Contact Privacy policy Terms and conditions