Quantcast
Viewing all articles
Browse latest Browse all 512573

Conditions: Category template not working

Replies: 1

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’,
),
) );
}


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>