i want to create a single file that i can use to standardize naming conventions. i recognize that i can use shortcodes to create this, but my current understanding is that i would need a single shortcode file for each standardized name - i would end up with 50+ files.
is it possible to write a shortcode file where i would have subcodes, or the like, and i can list and maintain the names in a single file?
example of what i’m trying to do.
shortcode file: produt.html
file contents (i know that this isn’t the right syntax):
prod1=‘Orange’
prod2=‘Apple’
in my doc, i could write:
If you would like to accomplish this task easily, you should use an {{<product.prod1>}}. If that doesn’t work for your function, you could also try an {{<product.prod2>}}.
this would display as:
If you would like to accomplish this task easily, you should use an Orange. If that doesn’t work for your function, you could also try an Apple.
no. i’m fine with code, but the documentation confuses me more than it help.
what i need is an example of what the shortcode.html file might look like and the content reference. I can’t discern from the documentation how to structure the two parts.
how would i structure the above example? :
If you would like to accomplish this task easily, you should use an Orange. If that doesn’t work for your function, you could also try an Apple.
Content markdown would look like:
Html template file (product.html) would look like:
thank your very much for your illustration. that makes so much more sense. i didn’t realize that i needed to create a logic block to house the options. perfect! i am in your debt.