I’m looking for a way to balance the content at the homepage of my blog:
the blog has a few post types like Poscasts, Videos and Blog and I’d like to have let’s say 10 Posts on the homepage, but I’d like to make 5 of them always the lastest Blog.
Making 3 separated boxes don’t solve my problem because the posts are mixed and there won’t always be as many posts of the other types.
I could think of the solution for it on pure PHP , but I’d like to get a idea on how to do this using the wordpress API, any help , reference will be welcome!
So, after a few months. I found the answer to your exact question:
Cheers
If you are still looking for an alternative that may be faster this may help you:
Then to get it’s output put
<?php customBlogFeed(); ?>
wherever you’d like this to output.If you really want to get fancy you can hook into the post_limits Filter and limit how many posts per post type are displayed. I hope this helps you on your quest.
PS – Look into WP_Query, it will really help you out.
After some research you might actually want to look into post_clauses to get those SQL characterizations done with WP3.1+ Syntax