Skip to content

Pass parameters to shortcodes (for instance, category)

1
2 years agoopen0

It would be great to be able to create one shortcode to apply separately in several (one or more than one) categories or tags. I mean, instead of creating 20 shortcodes, one for each category/tag (low efficient), create one shortcode and define category/tag(s) to show on different instances. Something like this:
[MEC id=”890″ show-only-this-category=”cat5″].
Other instance of same shortcode id:
[MEC id=”890″ show-only-this-category=”cat97″].

Sahre
Tags

Inex

Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis error dignissimos fugiat voluptas, asperiores quibusdam exercitationem id quam reiciendis expedita quidem nemo? Illo quod suscipit est possimus officiis repellendus eum.

Leave a Reply

Your email address will not be published.Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Search
Categories
Subscribe
Socials