Conditions: Category template not working
-
Im trying to select a condition for “is_category” but Pages: With Template = Category not working.
how can I create a custom condition to check if page is using category template (is_category), since I dont see it in the current condition list.
Already tried the following but not working either. Please help!
add_filter( ‘pum_get_conditions’, ‘pum_category_conditions’ );
function pum_category_conditions( $conditions ) {
return array_merge( $conditions, array(
‘is_category’ => array(
‘group’ => __( ‘Pages’ ),
‘name’ => __(‘CAT’, ‘popup-maker’),
‘callback’ => ‘is_category’,
),
) );
}
- The topic ‘Conditions: Category template not working’ is closed to new replies.