wp-query

How to use a custom post type archive as front page?

I’d like to use a custom post type archive as a site’s front page, so that http://the_site.com/ is a custom post type archive displayed[...]

get custom post type by tag

Is it possible to retrieve post entry for a custom post type by tag, I have been trying with the following code, however it just locks me into a infinte[...]

How to find the WordPress Nextgen galleries which are not used in WordPress posts?

I am using WordPress with Nextgen Gallery ^(http://www.netaksharee.com/goto/http://wordpress.org/extend/plugins/nextgen-gallery/) by Alex Rabe for quite[...]

Check for featured image in WP_Query

Is there a way to filter posts by featured image when initialising a WP_Query object? Example $my_query = WP_Query(array("has_thumbnail"=>true)); or,[...]

Simplest way to query with blog_id?

What is the simplest way to query posts using blog_id? I have a post type called video that holds, not surprisingly, multiple embedded videos. Each post[...]

Why does 'exclude_from_search' exclude a custom post type from WP_Query?

In WP 3.1, it appears that setting 'exclude_from_search' = TRUE for a custom post type excludes the post type not just from searches on the front-end,[...]

How to limit the posts

I have a new question, how can I limit the amount of posts coming out of this query? I only need 7 <?php $newsposts = new WP_Query('cat=restaurant'); if[...]

How to Get All Posts with any post status?

I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in all states, mainly published, trashed[...]

How to trigger 404 for custom query var?

How can you trigger a 404 when using custom query vars? I’ve got re-write rules written for a custom query var, but if you were to request a URL[...]

Query custom taxonomy by term id?

I made a custom post type and a custom taxonomy, but I have a problem. When I access the url http://www.ithemes.co.kr/?shopcat=galaxy-s, it works well.[...]