• 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

Woocommerce redirect after add-to-cart error

Artisan, creating tables in database

Correct way to use LIKE '%{$var}%' with prepared statements?

Respond with status code 401 on authentication failure using Laravel and Passport?

how to youtube api data to print in toolset metabox using a button click before save-post

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

Return new collection without modifying original collection

Check if my GET request has Header: Token

How to update array value in Laravel

What is my SQL missing?

insert multiple rows in a saveall in cakephp

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

Boolean assignment operators in PHP

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

About Contact Privacy policy Terms and conditions