WpCode.net

Daily Wordpress Code Snippet

April 23, 2011
by Pigi
0 comments

How to Use “query_posts” in wordpress

How to hide posts from your Home Page? How to show post from specific category in your sidebar? Unique answer is Using the query_posts function.

This function is a native Wp Function, and allow the bloggers to query post directly from Wp Db. You can use query posts function to call post by different parameters.

You can call posts by tags, by type, by category or by date (day, month and year); you can call single post by id,.

Continue reading