Concatenate Key Values in gd_post_meta

This topic contains 5 replies, has 2 voices, and was last updated by  Guust 4 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #542619

    gowrann
    Expired Member
    Post count: 39

    Hi,

    Is it possible to concatenate multiple key values in the shortcode so they output inline, so I want to output the region and zip values inline?

    But this outputs as block elements in containing divs.

    [gd_post_meta key="region" show="icon-value"][gd_post_meta key="zip" show="icon-value"]

    Thanks

    #542625

    Guust
    Moderator
    Post count: 29970
    #542626

    gowrann
    Expired Member
    Post count: 39

    Hi thanks, but how to do so as shortcode…

    [gd_post_meta key="%%region%%%%zip%%" show="icon-value"]

    The above does not render both region and zip.

    #542631

    Guust
    Moderator
    Post count: 29970

    You should use the shortcode builder to get the correct shortcodes:
    https://docs.wpgeodirectory.com/article/95-shortcode-builder

    [gd_post_address show="icon-value" address_template="%%region%% %%zip%%"]

    Thanks

    #542634

    gowrann
    Expired Member
    Post count: 39

    OK I see thanks, works!

    #542635

    Guust
    Moderator
    Post count: 29970

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket