My client asked me to implement lists of recent and related posts below a single post without duplicating each other.What do we have to do?Create 2 instances of WP_Query class ($recent_query and $tags_query) By the help of these instances we have to create loops for recent and related posts IDs of the...
Recently my client’s design required displaying posts in sidebar only from one category. To solve this problem I decided to use class WP_Query. The first we have to create instance of WP_Query:Then call method query(); to start the query. This is actually same as you would be using query_posts(); Parameter cat indicates...
