Replies: 1 comment 3 replies
-
Combination. Global shortcodes (theme, e_shortcode) should output elements like news grids, the latest news, or anything else used globally. The rule should be - if I need any value, there should be way how to get it without HTML markup, or HTML markup can vary according parameters. I use it this way:
The funny thing is that you don't need shortcode files anymore - look at navigation shortcodes or some Cameron plugins. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering, should logic be in shortcodes or not?
For instance, should the shortcodes only be a "dumb" and flat method to do the output, or it should perform more complicated calculations and have all the functions needed for the shortcode output?
What do you think, or what should be the guidelines for a shortcode coding?
Beta Was this translation helpful? Give feedback.
All reactions