[Resolved] Creating shortcode for text slug
I would like the same slug of text (a 5-line list which will occasionally need to be updated) to appear at the end of the text on every static page except the home page (ie not on post pages).
I don’t think I can use a widget since these have to be placed in a fixed location on the page and the position of my text slug will vary depending on how long the main content is on each page.
So is a shortcode my best bet? I couldn’t find a snippet which matches my need; and when I did a Google search of this forum for “shortcode” only 3 matches were found, none of them relevant.
If so, I would prefer to try coding this myself rather than install another plugin to do just one task. I’ve read the WP shortcode Codex and other references but being php-illiterate, I couldn’t understand them.
Can anyone please help? TIA.
- The topic ‘[Resolved] Creating shortcode for text slug’ is closed to new replies.