• 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

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

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

Problem with fetching data from database in Laravel

Two buttons one form

Zig-zag scan an N x N array

Twig - How to check if variable is a number / integer

Match single unknown parameter php (Morse-code Regex)

PHP echo values of all sub keys [duplicate]

PHP: Convert any string to UTF-8 without knowing the original character set, or at least try

PHP mail sending empty mails

Make survey at laravel 5.4 and MySQL

How to downgrade or install a specific version of Composer?

Show date difference as "20" instead of "20 years ago"

MongoDB Duplicate Documents even after adding unique key

How to modify CSS in a specific page of the WP admin dashboard (backend)

About Contact Privacy policy Terms and conditions