WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
How to check for specific post type? (2 posts)

  1. Skinny_Latte
    Member
    Posted 2 years ago #

    Is there a way to check for a specific post type other than regular post?

    http://wordpress.org/extend/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    http://codex.wordpress.org/Conditional_Tags#A_Post_Type

    suggests you could try something like

    'book' == get_post_type()

    (though I've not tried it myself - never had use for post types, as yet)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic