How to pass custom variables to the template via shortcode?
-
Hello,
Some products on Amazon have names that don’t make sense purely for keyword stuffing. I would like to display those products by passing their real clean name without all the nonsense coming with it if the API fetches the title.
How can I pass a custom variable through the shortcode and use it in the templating system?
For example:
[amazon_link asins="XXXXXXXX" template="MyTemplate" custom_title='Dyson Water Foutain' link_id='xxx']
To then call in the template:
{{custom_title}}
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to pass custom variables to the template via shortcode?’ is closed to new replies.