[wp-trac] [WordPress Trac] #20647: get_post_type() returns nothing on custom post type archive pages with custom query and no results
WordPress Trac
wp-trac at lists.automattic.com
Wed May 9 22:45:56 UTC 2012
#20647: get_post_type() returns nothing on custom post type archive pages with
custom query and no results
-----------------------------+------------------------------
Reporter: MikevHoenselaar | Owner: MikevHoenselaar
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Post Types | Version: 3.3.2
Severity: normal | Resolution: invalid
Keywords: needs-patch |
-----------------------------+------------------------------
Comment (by scribu):
I would actually be for deprecating get_post_type(), since the name ''is''
misleading and it's not that useful as a template tag either. Plus you can
just call `get_post()->post_type` now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20647#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list