How to get the conditional statement for particular categories?
-
This is a great plugin btw … great work. Hope more features are added soon. Here’s one I was wondering that how do I add conditional for a particular category ..
$conditions[] = array( 'name' => __( 'Nation', 'if-menu' ), 'condition' => 'is_category(166)' );
I tried using above category for category id 166 .. but it gave an error. I could see ‘Nation’ listed in the drop down on the menu page as conditional but when activated it didn’t work. I’m sure I’m missing some code. Could you please help??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to get the conditional statement for particular categories?’ is closed to new replies.