[Resolved] Template Tag for dynamic image in element

Home Forums Support [Resolved] Template Tag for dynamic image in element

Home Forums Support Template Tag for dynamic image in element

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1618307
    Benny

    Hi team,
    Thank you for this amazing piece of software (goes for both GP and WP Show Post).
    I never thought I could be happier after giving away my money πŸ™‚

    Case: I’ve created a custom field (“thq_featured_icon”) and assigned it a value of a string (“https://mydomain/folder_1/subfolder/sub-subfolder/imageName.svg”). Including the “”.

    Everything works fine when I use:
    <img src="https://mydomain/folder_1/subfolder/sub-subfolder/imageName.svg" alt="featured icon" width="200" height="400">

    But it doesn’t work when I switch to:
    <img src={{thq_featured_icon}}

    I guess I have to mask those “” in some way, but I can figure out how.

    Thanks

    #1618389
    David
    Staff
    Customer Support

    Hi there,

    to get a custom field in the Header element you use this tag: {{custom_field.name}}

    So yours would be: {{custom_field.thq_featured_icon}}

    Not sure if that will work in this context – let me know πŸ™‚

    #1618585
    Benny

    David, you are my hero!
    Thanks very much.
    It works πŸ™‚

    #1618748
    David
    Staff
    Customer Support

    Glad to be of help

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