[Resolved] Injecting dynamic text in posts

Home Forums Support [Resolved] Injecting dynamic text in posts

Home Forums Support Injecting dynamic text in posts

  • This topic has 3 replies, 2 voices, and was last updated 7 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #307134
    Arkin

    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,

    #307355
    Tom
    Lead Developer
    Lead Developer

    I think you’re looking for shortcodes: https://codex.wordpress.org/Shortcode_API

    #307801
    Arkin

    Thanks!

    #308000
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.