How To Query WordPress Custom Post Type

I have setup custom post type for my WordPress site, but dont know how to query posts at the frontend.

You can use query_posts function as following (please replace custom_type with your custom post type)

query_posts( array( 'post_type' => array('custom_type') ) );
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments