• 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

dockerizing Laravel + vue

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

How to redirect to another page after n seconds in wordpress without using javascript?

advanced custom fields wordpress custom class

WordPress Security Standards want me to escape my html, but how to do it correctly?

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

how to insert data into select2 search input after scan using qrcode

WooCommerce Additional Information - if empty, hide

Symfony Mercure "Failed to send an update"

I want to store data in new index as per my key in php [duplicate]

Get number of working days between two dates in PHP [duplicate]

PHP - Store information with NO database

PHP function Not Working As Expected From functions.php Include File

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

How to debug in WooCommerce 3+

About Contact Privacy policy Terms and conditions