Results 1 to 9 of 9
Thread: Php - rotation of shortcodes
Dec 4, 2013, 17:32 #1
- Join Date
- Dec 2013
- 0 Post(s)
- 0 Thread(s)
Php - rotation of shortcodes
I have what I think is a simple question but for some reason using any type of ararys won't work, at least as I tried.
I have two or three short codes I want to rotate using php but I'm not sure how to get only one to show at a time and what options I have for rotating.
Here are the lines of code
<?php echo do_shortcode('[content 1]'); ?>
<?php echo do_shortcode('[content 2]'); ?>
I just want one of them at a time to show up on the page. Do you know how I can do that?
Thank you for your help,