Displaying Custom Fields

Home Forums Calendar Products Events Calendar PRO Displaying Custom Fields

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17507
    Donna
    Participant

    Hi
    I recently upgraded a client’s calendar to the PRO version in part so that I could make use of the custom field options. I would like to add list of links, including a registration link (using an EventBrite URL). Basically, I would like it to say:

    Register Today!

    How do I add the custom field information without having show the title of the field (EventBrite Link) and allow for the URL to be workable?
    (PS – the spaces in the code are simply because i couldn’t get it to display it here without just showing a link…)
    Thanks!

    #17508
    Donna
    Participant

    meh, it still didn’t display correctly… but you get the picture… I just want to grab the URL and put it in the href section of the link html.

    #17510
    Donna
    Participant

    I would like to add too that I can list the custom field via php with:

    tribe_the_custom_fields(‘EventBrite’);

    BUT i really just want the URL to be placed into the link tag like this: href=”EVENT BRITE LINK ”

    Also when I put the url in the format of http://www.linkname.com – it doesn’t show as a link, it simply displays as some text which is fine but I read in another post that it should be converted to a link. If that is the case, then I really want to simply show the value of the field without showing the title/label of the field.

    #17539
    Jonah
    Participant

    Hi Donna, you should be able to use:

    echo tribe_get_custom_field('EventBrite');

    which will only return the value input in the custom field and nothing else. Put that in the href attribute and you should be good to go!

    #17739
    Donna
    Participant

    Great! Thank you!

    #17740
    Donna
    Participant

    O but wait… in the meta box on the single event page, the link appears only as static text as seen here:
    http://sacredlomi.com/new/event/3-day-lomi-lomi-workshop-in-fairfax-va/

    I read in another post that it should be automatically converted to a link…

    #17743
    Jonah
    Participant

    Right, you need to put the link into an href like so: https://gist.github.com/17b7655a61e24d264a56

    #976481
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Displaying Custom Fields’ is closed to new replies.