[wp-trac] [WordPress Trac] #12588: Add function to check if current page is a custom post type
WordPress Trac
wp-trac at lists.automattic.com
Fri May 7 13:20:36 UTC 2010
#12588: Add function to check if current page is a custom post type
----------------------------+-----------------------------------------------
Reporter: sirzooro | Owner: nacin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.0
Component: Administration | Version: 3.0
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment(by scribu):
Maybe have two functions:
is_post_type() - check if a post type is registered
is_post_of_type() - check if a certain post is of a certain type
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12588#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list