How can Post Meta Key's be used anywhere?

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

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

Open Support Ticket
  • Author
    Posts
  • #521472
    #521503

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    thanks for writing in about this.

    As a workaround right now you could use the GD Badge shortcode, and set the link to %%input%% then add some custom CSS styles to make the badge look exactly like the button you want.

    Generally speaking, shortcodes do not execute within other shortcodes. You would want to talk to Avada about enabling shortcodes within their shortcodes.

    About the raw output, the developers are considering adding something like that and I Have added your vote for the suggestion and notified the developers.

    To accomplish this goal now would require probably two customizations, the first being a new shortcode to render the value only of the phone field. The second would be a change to Avada’s shortcodes to allow render of shortcodes inside an Avada shortcode. In most cases rendering a shortcode inside another shortcode requires rendering the shortcode value to a variable, and then the second new shortcode simply inserts that value into the shortcode in the page.

    We have slightly simpler example of this here: https://wpgeodirectory.com/docs-v2/faq/customizing/#custom-integrations

    If you need hands on help with customization you can contact a GD Expert here:
    https://geodirectoryexperts.com/

    #521565

    Guust
    Moderator
    Post count: 29970

    The [gd_post_meta key=phone] shortcode should automatically add the “tel” to it; it is not working because you are adding it twice the way you are doing it.
    If you add a custom class to the shortcode, for example

    [gd_post_meta key="phone" css_class="my-css"]

    then you just need to create some CSS and you should have a button.

    Thanks

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount