Trying to pull Custom Fields into Sidebar Advanced Widget as links…

Home Forums Calendar Products Events Calendar PRO Trying to pull Custom Fields into Sidebar Advanced Widget as links…

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #65148
    Joe
    Participant

    Hey there,

    I’ve got a 2.x install of Pro on a site (will upgrade, eventually to 3 when we can get the time to test it out on a dev site). We’ve pretty heavily modified the code, so we’re not eager to jump right into an update and redo the mod work. Here’s the issue:

    We’re using the advanced sidebar widget to display not only a bit of info about the events, but to provide *multiple* CTA links from each listing. I know that normally you would have a user click into the event single.php page and then shoot them off in different directions, but our client was adamant that they be able to do that right from the homepage. We hijacked a few of the variables not being utilized by the client (organizer email, etc) to display these links in the sidebar as links stylized to look like buttons. We’ve run out of variables to hijack, though, and now they want more buttons (aaah!). So I’m trying to just use the Additional/Custom fields options, and I was hoping to pass them off as these “buttonified” links (rather than just as “Label: Value”). However, to do so, I think I have to be able to grab each of these two additional fields’ values. The only thing I see to call them is: tribe_the_custom_fields( get_the_ID() );

    If I named these variables “Ring 2” and “Ring 3,” and I wanted to do something like:

    echo tribe_get_custom_field(‘Ring_2’);
    or
    echo tribe_get_custom_field(‘Ring_3’);

    How would I do that?

    #65163
    Joe
    Participant

    Ok, sorry. I’ve figured it out. Apparently the underscore character was throwing things off. I assumed the space would be swapped with an underscore, but when I replaced “Ring_2” with just “Ring2” (and removed the space in the actual label) it worked just fine.

    All set. Thanks. Please close the thread.

    #65171
    Kelly
    Participant

    Thanks for letting us know, Joe. Glad you were able to resolve it!

    #980726
    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 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Trying to pull Custom Fields into Sidebar Advanced Widget as links…’ is closed to new replies.