Conditional logic
-
Hello! Is there a way to use conditional logic in your shortcodes?
For example I need to add some extra category names for some of my shop categories like this:
if the first category is “something” then {
<category>”extra category1″ > “extra category 2″ > [alg_product_categories_names sep=” > “]</category>
} else {
<category>[alg_product_categories_names sep=” > “]</category>
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Conditional logic’ is closed to new replies.