• I’m a PHP dullard, but I’ll phrase this as best I can: Is there a way to retrieve information about the currently active post type in a template? For example, if I have several custom post types, and I want to add a wp_query in my index.php template that lists only the posts in the currently active post type.

    I experimented with get_post_type_labels and get_post_type_object, but wasn’t able to accomplish anything except generating errors. ;p

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Current Post Type Info’ is closed to new replies.