[wp-trac] [WordPress Trac] #27275: custom post, custom tax and category or post_tag
WordPress Trac
noreply at wordpress.org
Tue Mar 4 20:35:36 UTC 2014
#27275: custom post, custom tax and category or post_tag
------------------------------------------+----------------------
Reporter: aliwebdesarrollo | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.9
Component: Query | Version: 3.8.1
Severity: normal | Resolution: invalid
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+----------------------
Comment (by aliwebdesarrollo):
I found that inside a setting file (not a plugin because this theme doesnt
have it) it was set this:
$query->set( 'post_type', 'post' );
I spent 4 days trying to find out where it was the problem, and as i was
creating a new query outside the main loop i belive that this set not
affect the new query.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27275#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list