query to check/see if moduleposition in a group
-
First of all – I like this program. It makes it pretty easy to add a now position and corresponding content in a theme.
Let’s say that I have added code like the following into a position:
<?php echo do_shortcode(‘[moduleposition id=”2″]’); ?>
<?php echo do_shortcode(‘[moduleposition id=”3″]’); ?>
<?php echo do_shortcode(‘[moduleposition id=”4″]’); ?>If any of 2,3 or 4 are valid, content will display.
1) What mysql query will check to see if any are valid?
In my case if they are active, they will display side-by-side (using bootstrap for responsiveness). Depending on how many of the 3 are active I need to set the CSS class to handle 1,2, or 3 modules.
2) What query will return a result of 1, 2 or 3 being active? This may or may not cover the first need.
Tx
- The topic ‘query to check/see if moduleposition in a group’ is closed to new replies.