Forums

Custom Post Types on Category Pages (1 post)

  1. moshthepitt
    Member
    Posted 1 year ago #

    Hi!

    I am using this bit of code to make custom post typess show on my category pages:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array(
    'post_type' => 've_products', // custom post type
    'paged'=>$paged,
    ));
    ?>

    Is there a way I can modify this code to include it into functions.php instead of category.php and achieve the same effect?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.