• 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

get attribute from class not working php 7

how to search for a file with php

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

How to install php yaml on CentOs?

mysql_result is defined but mysql_free_result warns it expected a resource

Laravel implode array items to new lines

Zig-zag scan an N x N array

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

The difference when using if statement true === something() vs something() === true [duplicate]

How can i hide dt if dd got empty value

woocommerce_wp_select options array from product attribute terms

PHP error: "The zip extension and unzip command are both missing, skipping."

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

file_put_content...fail to open stream:Permission denied in Laravel 5

Submitting a form with ajax in Wordpress

About Contact Privacy policy Terms and conditions