• 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

Redirect to previous page with php

IlluminateDatabaseQueryException: SQLSTATE[HY000]: General error: 1 no such table - In clone project

wp_remote_get() not passing authentication

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

GRPC installed successfully on ubuntu but php is looking for it in another folder

Remove product downloads section in woocommerce email notifications

Multiple order by in WooCommerce

PHP only Hit Counter?

How do I do HTTP basic authentication using Guzzle?

Select option menu read from database and use it's values

How to make Canonicals with PHP

Sum array values of a column within each column of an array with 3 levels

Read users and passwords from a txt file

PHP sort array of objects by two properties

About Contact Privacy policy Terms and conditions