Why in this archive page that call query_posts() function show only the last 10 posts?

WordPress by default will only load 10 posts. That can be changed in the admin under Settings->Reading and then setting the amount beside “Blog pages show at most”. You can override that number in your custom queries a couple of ways but I would first recommend against the use of query_posts() ( take a read … Read more

How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?

You can use add_image_size() function to create custom sized images. You only need to paste some piece of codes in your functions.php and then update the template files accordingly. For example : add_image_size( ‘category-thumb’, 300 ); // 300 pixels wide (and unlimited height) add_image_size( ‘homepage-thumb’, 220, 180, true ); // (cropped) And you can use … Read more

Issue on Getting Custom post type Thumbnail’s URL

The href attribute you are passing under the_post_thumbnail() is incorrect. Note that this attribute is applied to the img tag which obviously doesn’t supports href attribute. It would be better to wrap the_post_thumbnail() with an <a> tag. So it will look something like the following: echo ‘<a href=”‘ . get_permalink( $thumbnail->ID ) . ‘”>’ . … Read more