TODO: To change the header's content go to Dr.Explain menu Options : Project Settings : HTML (CHM) Export : Setup HTML Template and Layout
×
Menu
Index

Lấy kích thước thumbnail


Lấy post thumbnail của post.
Lấy post thumbnail trong vòng lặp.
while(have_posts()):the_post();
    //display post thumbnail
    if(has_post_thumbnail()) the_post_thumbnail();    //display img tag
 
    //lấy thumbnail id từ post
    $attachment_id = get_post_thumbnail_id($post->ID);
 
   
endwhile;
 
Lưu ý:
Made with help of Dr.Explain

Unregistered version