• 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

Timber: Single post pagination does not work (wp_link_pages)

generating a random code in php?

Input and output values for php into the browser?

how to pass row id in href of a tag in codeigniter controller?

Webscraping Symfony/Panther: Can't get HTML

Put content of wordpress page inside div

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

Why does using salted hash on python and php give me different results?

wordpress : How to specify the cause "This site can’t be reached"

How to submit the custom form data in database in WordPress without plugin using ajax?

PHPUnit 7: Failed asserting that exception of type InvalidArgumentException is thrown

Two buttons one form

HTML and PHP in one file

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

Live search query using JS and PHP for QA forum

About Contact Privacy policy Terms and conditions