• 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

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

Laravel query builder binding parameters more than once

Ajax GET request fails in laravel 8

Send Outlook 2010 email using PHP

file_get_contents() without "Http" to access external URL [closed]

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

Show only featured products in Woocommerce shop page

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

MySQL upgrade causing unexpected results on simple WHERE clauses

PHP usort() order in case of equality

Correctly determine if date string is a valid date in that format

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

CodeIgniter force_download is not working

str_word_count() function doesn't display Arabic language properly

Combine multiple columns into an array as one of the key in a results set

About Contact Privacy policy Terms and conditions