Multiple instances of Shortcode
-
I’m trying to use the Loop Shortcode multiple times on a single page to pull different article categories. Unfortunately, the second instance is just listing the same query as the first. Is it not capable of creating different queries on the same page using the shortcode?
Here is the exact code I am using.
Individual Event Donors
[loop type=”post” category=”event-donors” year=”today”]
[content field=”title-link”]
[/loop] [break]Annual Donor Listing
[loop type=”post” count=”1″ category=”donors-2″]
[content field=”title-link”]
[/loop]What I get returned by the second loop is one listing from the “event-donors” category, not a listing from the “donors-2 category”.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Multiple instances of Shortcode’ is closed to new replies.