Enable shortcodes in Custom Fields

This topic contains 2 replies, has 2 voices, and was last updated by  wasanajones 8 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #122250

    wasanajones
    Buyer
    Post count: 180

    I know this has been asked and sort of answered a number of times but I can’t decipher it.

    please advise the functions.php edit to enable shortcodes in a custom field created thru geodir cpt settings

    I’ve tried many different permutations of echo do_shortcode but coming up snakeeyes

    is the HTML Variable Name the custom field name? what code will allow shortcodes?

    thanks

    #122421

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can’t do this via functions.php.

    The only way would be to add the custom field, wrapped in a do_shortcode funtion, directly in the template where you want to show it.

    Hope this helps,

    Thanks

    #122422

    wasanajones
    Buyer
    Post count: 180

    Hi – thanks. I had a feeling.

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