Can you use multiple shortcodes on same page?
-
I’m using multiple shortcodes on a single page. It worked at first, but now it displays the same users for each shortcode, even though the parameters for each code are different. It seems to be taking the parameters of the first shortcode and repeating it for all the others on the page.
This is what my code looks like:
<h3>Region 1</h3> [userlist list=12 filter=1 dbem_region=1] <h3>Region 2</h3> [userlist list=12 filter=1 dbem_region=2] <h3>Region 3</h3> [userlist list=12 filter=1 dbem_region=3]
I’m already using the Grouping add-on to group the users within each region by another subheading. So that’s why I’m grouping the regions with separate shortcodes. (I know I can also achieve this by creating a separate user list for each region, but there’s a reason I can’t do that for this list — so I’m trying to get it to work with the shortcode.)
The above code DOES work if I visit the url with ?refresh=1 at the end of it, but it doesn’t work when you visit it normally. I’ve tried hitting the “Rebuild cache” on the list, but that doesn’t seem to have any effect.
My cache settings are: No scheduled auto-cacheing.
What could be causing this problem? Thank you.
- The topic ‘Can you use multiple shortcodes on same page?’ is closed to new replies.