• 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

Passing a boolean value from checkbox in Laravel form

CONCAT columns with Laravel 5 eloquent

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

PHP, how to convert Int value to Week days

TesseractOCR not working for Laravel

php script to delete files older than 24 hrs, deletes all files

Lumen - Postgresql setup - Composer

Change user role if checkout custom checkbox is checked in WooCommerce

Query Optimization, changing the queries in the loop into a single processing query

Performance of foreach, array_map with lambda and array_map with static function

how do i retrieve and display the alt text of an image in wordpress?

How to debug in WooCommerce 3+

Add custom text under order details on WooCommerce My account view order pages

Where do I need to place a hook for phpunit?

Edit XML in HTML form and submit to self

About Contact Privacy policy Terms and conditions