Shortcode links in site footer
-
I’m creating separate shortcode snippets for links to my social media profile icons (external links). Each URL in the snippet editor field is formatted as follows:
https://example.com
and the shortcode is formatted as follows[example].
The shortcode is then added manually to button URL fields across the site. These work as expected inside the content areas, however, when used in the site footer area, these shortcodes’ links are prepended with the URL of the current page and the shortcode isn’t being executed, so links on these buttons look as follows:https://mydomain.com/current-page/[example]
It appears that WordPress is prepending my shortcodes in the site footer with the current page’s URL and preventing the shortcode from executing.Is there a function I can add that will prevent this?
- The topic ‘Shortcode links in site footer’ is closed to new replies.