[wp-trac] [WordPress Trac] #17592: 'exclude_from_search' excludes from non-search queries
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 13 12:50:11 UTC 2012
#17592: 'exclude_from_search' excludes from non-search queries
--------------------------+-----------------------------
Reporter: danblaker | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 3.1.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------------
Comment (by l3rady):
I just came across this and it took me hours for me to work it out.
I had a CPT called `locations` and had `'exclude_from_search' => true`. I
then created a custom taxonomy for this CPT called `ltypes`. I then
created taxonomy-ltypes.php to list all posts that have the chosen
taxonomy, only to be greeted with no posts found...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17592#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list