Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress thumbnail url

<img src='<?php the_post_thumbnail_url(); ?>'>
Comment

Wordpress thumbnail

// without parameter -> Post Thumbnail (as set by theme using set_post_thumbnail_size())
get_the_post_thumbnail( $post_id );                   
 
get_the_post_thumbnail( $post_id, 'thumbnail' );      // Thumbnail (Note: different to Post Thumbnail)
get_the_post_thumbnail( $post_id, 'medium' );         // Medium resolution
get_the_post_thumbnail( $post_id, 'large' );          // Large resolution
get_the_post_thumbnail( $post_id, 'full' );           // Original resolution
 
get_the_post_thumbnail( $post_id, array( 100, 100) ); // Other resolutions
Comment

wordpress add thumbnail for category

add_theme_support('category-thumbnails');
Comment

PREVIOUS NEXT
Code Example
Php :: write in a file using php 
Php :: How can I get current controller and current controller action name in yii2 
Php :: php convert to lowercase 
Php :: laravel dump query 
Php :: php get first 10 elements of array 
Php :: laravel group routes 
Php :: how to know the path of php in linux 
Php :: laravel unique validation 
Php :: array_unique multidimensional php 
Php :: php get url 
Php :: if condition inside echo in php 
Php :: php search the key off bigger value 
Php :: laravel composer update 
Php :: http error 500 - php file 
Php :: php creazione numero random 
Php :: PHP Create a MySQL Database 
Php :: <?php echo do_shortcode(); ? with variable 
Php :: Deleting an element from an array in PHP 
Php :: wordpress is home page 
Php :: symfony redirect to previous page 
Php :: laravel query string 
Php :: shortcut vsc select line up 
Php :: exec command not working in php but works in terminal 
Php :: laravel route logout 
Php :: php curl_exec get response json 
Php :: get month first date and last date in php 
Php :: php array filter only null 
Php :: install php 7.3 ubuntu 
Php :: php date add days 
Php :: ubuntu install php 8 nginx 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =