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 using the bbpress plugin. It has a custom post type called forums. I used to sort posts by changing its publishing date. But you can't do that with this custom post type.

Any suggestions?

share|improve this question
up vote 1 down vote accepted

i used this code to create custom post template for specific post type

define(SINGLE_PATH, TEMPLATEPATH.'/single');    
function product_single_page_template($product) {
        global $wp_query, $post;
        $type = get_post_type();
        if ($type==true) 
            if(file_exists(SINGLE_PATH . '-type-' . $type . '.php'))
            return SINGLE_PATH . '-type-' . $type . '.php';
        return $product;
add_filter('single_template', 'product_single_page_template');

you can do the same with categories or for non single pages just as well.

hope this helps

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.