WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Widget Logic] Conditional tags for Custom Post Types

[Plugin: Widget Logic] Conditional tags for Custom Post Types

  • I need to show certain widgets on some of the Custom post types and hide them on some others. What conditional tags I can use for Custom Post Types?

    get_post_type() 
    
    post_type_exists() 
    
    is_post_type_hierarchical($post_type) 
    
    is_post_type_hierarchical('book')

    I have used these ones but it seems none of them work. Are these the right conditional tags?

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Widget Logic] Conditional tags for Custom Post Types’ is closed to new replies.