Displaying Taxonomy in Widget Week

Home Forums Calendar Products Events Calendar PRO Displaying Taxonomy in Widget Week

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1094879
    awc
    Participant

    Hi!

    I have a some custom taxonomy that I’m able to display on single event pages. I’m stumped, though, on how to get those into the Widget. I’ve created the taxonomy through ACF PRO – but this question isn’t about the code to get ACF data to display. I’m missing something to get the same data into the widget. I first tested displaying data by trying to get the post ID into both – was successful in the single events, but not the widget (well, full disclosure: the ID only ever returned “1”).

    • Events Calendar PRO 4.1, WP 4.4.2
    • to get the widget to display in my template file I use <?php echo do_shortcode( '[tribe_this_week]' ); ?>
    • I’m able to echo out static content in my /my-theme/tribe-events/pro/widgets/this-week/single-event.php, but NOT the custom taxonomy
    • I’m able to echo out custom taxonomy in my /my-theme/tribe-events/pro/single-event.php

    I hope this make sense… I’ve read it so much that I can’t even tell anymore! 😉

    #1095089
    George
    Participant

    Hey there,

    I unfortunately must admit that I’m not 100% certain what your specific goal is. What do you mean specifically by “getting the taxonomy into the widget”?

    Also, I’m sorry to bear this news, but we cannot help with customization projects like this. Learn more about this here → https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/

    If you elaborate on your specific goals a bit, I will do my best to help, but I just wanted to mention the above policy because I cannot guarantee a meaningful/helpful outcome from our exchange here. 🙁

    Thank you,
    George

    #1095130
    awc
    Participant

    Hi George, thanks for replying. Perhaps the taxonomy example is too vague.

    I guess I’m trying to “hook into” the content on the events in the widget (widget is displayed using the shortcode [‘tribe-this-week’]) to display other info. For example, if there was a way to display the Event ID after the Event Title or after the venue link – this would be enough info for me to continue. This would all be in the week view – not in a single event (ie my-domain.com/event/whatever-event name).

    I am, however, able to display the Event ID in single event pages. So I’m not sure how the widget view differs from the single event view.

    I can’t see a way to upload an image in this reply, which might help clear things up visually.

    Anyways, this may fall out the realm of support, but hopefully there’s a hook/filter I can use. Or this just might be altogether vague! Either way, thanks!

    #1095484
    George
    Participant

    Hey @awc,

    This indeed does fall out of the scope of our support to a degree, but I can still help point out if there are hooks like you’re looking for.

    There unfortunately aren’t such hooks in the This Week widget, so you’re basically stuck with the “normal”/default WordPress hooks like the_content(). You can learn more about this hook and how to use it to add content to other content and such here → https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content

    I won’t be able to help with code-specific questions, but if there’s anything else I can try to help with let me know!

    Thank you,
    George

    #1101988
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Displaying Taxonomy in Widget Week’ is closed to new replies.