Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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.