• 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

Laravel-fopen: failed to open stream: Permission denied

Assign output of PHP function to a variable

Laravel SQL query midnight time not showing

How to change the app environment at run time?

Set quantity minimum, maximum and step at product level in Woocommerce

how can I set a session variable in Drupal 8 and get it in a php script?

How to display MySQL table using php and edit it in a web browser

Laravel passport auth token not working after moving to different server

Attempted to call an undefined method named "get" of class "MailController"

Laravel print last executed SQL query with Query log

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

Class AppHttpControllersUserController Does Not Exist

php file upload scanning using clamav, permissions on /tmp/

How to upload mpdf file after generating to s3 bucket in php

PHP how to detect if running on arm64 cpu?

About Contact Privacy policy Terms and conditions