[Plugin: Custom Post Type Archives] is_custom_post_type_archive not working with category
-
Hi!
This is my address:
http://www.mysite.com/foto/category/motorbikesWhere “foto” is a post type and “motorbikes” is category. In these kind of areas (post_type + category) I want to include different sidebar than in category area, so that’s what I do:
if(is_category()) { if(is_custom_post_type_archive('foto')) { echo '<h2>Sidebar foto</h2>'; include('sidebars/sidebar_foto.php'); } else { echo '<h2>Sidebar category</h2>'; include('sidebars/sidebar_category.php'); } }
but is_custom_post_type_archive(‘foto’) doesn’t work and sidebars/sidebar_category.php is included.
Am I missing something?
Thank youMatteo
http://wordpress.org/extend/plugins/custom-post-type-archives/
- The topic ‘[Plugin: Custom Post Type Archives] is_custom_post_type_archive not working with category’ is closed to new replies.