[wp-trac] [WordPress Trac] #27275: custom post, custom tax and category or post_tag
WordPress Trac
noreply at wordpress.org
Tue Mar 4 19:43:34 UTC 2014
#27275: custom post, custom tax and category or post_tag
---------------------------------------+-----------------------------
Reporter: aliwebdesarrollo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.8.1
Severity: normal | Keywords:
Focuses: ui, template, performance |
---------------------------------------+-----------------------------
I was developing a new theme when i try to create a wp_query for a custom
loop.
I create a custom post type
'''http://generatewp.com/snippet/lNKnjp4/ '''
Custom taxonomy
'''http://generatewp.com/snippet/7QkXvPk/ '''
WP_query
'''http://pastebin.com/rRSzyMKw'''
I was trying to get custom post, with a particular custom_taxonomy and a
particular category
When i make a var_dump i found that the parameters of the wp_query where
modify by the core, changing from 'my_custom_post' to 'post'.
I try it removing the category filter from the args (i keep the custom
post type and custom tax) and the query i get was the right one without
the filter i need.
this is the dump i have when i have the 'category__in' filter into args
'''http://pastebin.com/kTkJWL8n'''
as you could see the post_type was change from 'publicidad' to 'post'
this is the dump without the 'category__in' filter
'''http://pastebin.com/CapQQ0Ge'''
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27275>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list