Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 96034

coastalcutthroat on "Can't filter on category in loop with custom post type"

$
0
0

I absolutely can not get my loop to category filter, it's a custom post type.
Thanks!

<?php $args=array( 

 'post_type' =>     'portfolio',
 'post_status' =>   'publish',
 'posts_per_page'    => 45,
 'caller_get_posts'  =>1,
 'paged' => $paged );
 query_posts($args);

 while ( have_posts() ) : the_post(); ?>

I've tried the following:

1. <?php query_posts('post_type=portfolio&category_name=figurative'); ?>

2. if ( is_category( 'figurative' ) ) :
query_posts( array( 'category_name' => 'figurative', 'posts_per_page' => -1 ) );
endif;

3.'category' => '207',

4. <?php query_posts('cat=207); ?>

Guess I should say it's the Aie Theme $500


Viewing all articles
Browse latest Browse all 96034

Trending Articles