Single Event from Category Loop

Home Forums Ticket Products Event Tickets Plus Single Event from Category Loop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #994132

    Hi ,

    I’ve just updated my pro plugin. I had manual feed on my homepage that was pulling in the next event from ‘Sundays’ category. Since updating it seems to just pull the next event in rather than pull from the correct category. Please could you help me?
    The website is http://www.hopewinchester.org and I was previously using;

    <h2 class=”elm-maintitle”>This Sunday Morning</h2>
    <p>[loop type=”tribe_events” count=”1″ tribe_events_cat=”sundays”] [content field=”image”]</p><h2 class=”elm-maintitle”>This Sunday Morning</h2>
    <p>[loop type=”tribe_events” count=”1″ tribe_events_cat=”sundays”] [content field=”image”]</p>
    <h3 style=”margin-top: -20px; margin-bottom: -15px; font-size: 18px;”>[content field=”title”]</h3>
    <p>[content][/loop]</p>

    #994300
    George
    Participant

    Hey there,

    [loop] is not a shortcode that is included in any of our plugins, nor is [content field].

    Those are therefore coming from another plugin or your theme, so your best course of action here is to contact the support team for this software and inquire about this.

    If you don’t want to use shortcodes anymore, a better option might be to use our tribe_get_events() function, if you’re comfortable writing some custom code of course.

    You can learn about tribe_get_events() here → https://theeventscalendar.com/knowledgebase/using-tribe_get_events/

    Cheers!
    George

    #994676

    Hi George
    I had written the following which was working prior to upgrading my events plugin.

    [loop type=”tribe_events” count=”1″ .tribe_events_cat=”sundays”] <a href=”[content field=’url’]

    This still works, but is simply not pulling in the events within the category Sundays, rather it is now just showing the next event. Because it worked prior to upgrading the plugin, it must mean something has changed in the plugin. And because it is displaying events fine, just not the category specified then it can only indicate that .tribe_events_cat has changed in someway.

    I’m unsure on how to do what you are suggesting. Please could you help me fix this or advise as to what I could use to replace .tribe_events_cat

    Many thanks

    #994805
    George
    Participant

    Hi,

    The Events Category taxonomy is still defined as tribe_events_cat in our code, so we did not change anything on that front. It seems like changes have happened, perhaps, in the codebase of whatever plugin you are using for these third-party, unsupported shortcodes.

    I will close up this thread because we unfortunately cannot offer support for third-party plugins here. Definitely reach out to the authors of the plugin that gives you those “loop” and “content field” shortcodes, they may be able to offer some insight here.

    Best of luck with your site,
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Single Event from Category Loop’ is closed to new replies.