Did you ever want to have total control over how your posts are being displayed? Indeed, the way you display your posts is important. It changes the feel and look of your blog. I am sure you always wanted to know how some blogs display only posts from one category, embed thumbnails within their excerpts, or display posts like a newspaper.
In this chapter, I'll show you the various ways to display your posts and we'll also study the extremely useful query_posts()
function—which is used to control the WordPress loop.
In this chapter, you will learn:
Getting posts within the WordPress loop
Retrieving posts from a particular category only
Getting an exact number of posts
Retrieving posts by date
Getting posts published today
Getting posts published exactly a year ago
Using two different loops without duplicate posts
Accessing post data outside of the WordPress loop
Accessing permalinks outside the loop
Displaying any RSS feed on your blog
Displaying thumbnails on your blog homepage...