• 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

If you intend you use SMTP, add your SMTP Code after this Line

"cannot list resources" error from WooCommerce REST API

How to prevent phpmailer sending embedded image as an attachment on Gmail?

Add restriction to WooCommerce coupons by allowed user ID

how to get the header value, if we don't know the value because the value is random from the server

Woocommerce product attributes with hierarchy like categories

How can I pass the list to the component variable in Laravel?

How to Install Composer Require doctrine/dbal

add_action() function in wordpress not working [duplicate]

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

WooCommerce - unset "<product> removed notice…" on cart page

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

How to get Laravel's CSRF Token from Another Website?

How to convert a carbon into string, to take the date only?

Log file is not being written in Laravel 5.5

About Contact Privacy policy Terms and conditions