Archived topic
Injecting dynamic text in posts
3 replies · Started by Arkin on April 18, 2017
Viewing posts 1–4 of 4
Hi,
Is it possible to add somewhere a code like {my_field} and define my_filed somewhere in the theme to replace when showing the page?
Let's say I add a new field {company} and gave a value as "GeneratePress LLC". Then field should be replaced with its value whenever {company} is seen in page source.
Thanks,
I think you're looking for shortcodes: https://codex.wordpress.org/Shortcode_API
Thanks!
No problem :)
This archived topic is closed to new replies.