[wp-hackers] Custom post types - a multitude of problems

Gavin Pearce Gavin.Pearce at 3seven9.com
Mon Jul 26 09:38:54 UTC 2010

Show 10 posts with the term "Will Smith" (from your 'people' taxonomy).

Before 'The Loop':
<?php query_posts( array( 'people' => 'will-smith', 'showposts' => 10 )
); ?>

Then just run the loop like normal. Let me know if I'm missing the point
- it is Monday morning. ;)


-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Kris Young
Sent: 26 July 2010 10:20
To: wp-hackers at lists.automattic.com
Subject: [wp-hackers] Custom post types - a multitude of problems

Hi there,

I need to output the contents (all posts, all content of those posts) of
a specific custom category (taxonomy) and I have no idea how to get it
done. All I want is a page that outputs all the posts for a certain
category (and that category only) that I created using this code:

register_taxonomy("clients", array("portfolio_item"),
array("hierarchical" => true, "label" => "Clients", "singular_label" =>
"Client", "rewrite" => array('slug'=>'portfolio_item')));

Yes, that part was simple, but for some reason my custom taxonomy is
completely separate from the rest of the site and irretrievable. Can't
figure out for the life of me how to do this.

wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list