Shortcode within title of another shortcode
-
I am using the toggle short code to make a list of different organizations associated with my company. In the title of this toggle is a callout to another shortcode that outputs a count of the organizations. I am using a plugin to bring Dynamics CRM data into WordPress for the data for this count- which practically means that I need to call the shortcode from the CRM plugin into the title of the toggle short code.
This is the code I am trying to run:
[toggle title="Accountable Care Organizations ( [msdyncrm_twig] code to pull in the count [/msdyncrm_twig] )" iconColor="rgba(23,199,210,1)" titleSize="21"] Example org 1 Example org 2 Example org 3 [/toggle]
The published toggle title should say- Accountable Care Organizations (14)
Using my code the published page says- “Accountable –then the raw code is visible on the published page once you click on the toggleHow do I nestle the shortcode into the title of the toggle shortcode?
- The topic ‘Shortcode within title of another shortcode’ is closed to new replies.