• 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

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

PHP: PDO + CSV export not downloading (headers issue?)

Array to string conversion

What is PHP's equivalent of JavaScript's "array.every()"?

Remove categories with all childs derived from parent category

Explode not working properly with dash

Yii Ajax Submit button

Log file is not being written in Laravel 5.5

Minimum order amount except for specific shipping method in WooCommerce

Live search query using JS and PHP for QA forum

Custom API and cunsuming in php?

Laravel Model save() & update() Not Saving

get data-value with variable value

How to skip cart page on woocomerce for certain products only?

SQLSTATE[HY000]: General error: 1 table posts has no column named *

About Contact Privacy policy Terms and conditions