• 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

Assign output of PHP function to a variable

How to add a heading in between checkout fields of WooCommerce

Facebook PHP SDK - will not logout properly

How to add automatically collapse/expand in content wordpress (single.php)?

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

How to KeyBy where multiple items have the same key

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

Generate random username based on full name php

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

Laravel update hasMany relationship using saveMany

How to reset Laravel AuthManager/guards in between API calls in tests?

How to disable widget block editor of WordPress?

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

Laravel passport auth token not working after moving to different server

About Contact Privacy policy Terms and conditions