WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to display all the posts of a certain type in a page of posts. I'm using the wordpress plugin more types (http://wordpress.org/extend/plugins/more-types/) to create a custom type called pre-enjoyed.

I'd like all the posts in pre-enjoyed to be displayed when on the pre-enjoyed page.

I've never worked with custom types before and I'm not sure how to do this.

share|improve this question

I don't know the specifics of your plugin but I'll assume they are registering a custom post type.

I will also take the liberty and say you want a post based loop for your "pre-enjoyed" custom type, much like the default loop that most blogs have.

One quick method to do this is to get your theme's loop ( found in index.php or maybe loop.php) and copy and past it into a new blank php page and name that page--> single-pre-enjoyed.php

you then tell the loop to only grab posts from the post type pre-enjoyed using a query, for instance.

$query = new WP_Query( 'posts_type=pre-enjoyed');
// The Loop

Hope this helps, there are many ways to do this, so maybe provide some more details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.