Archive page for a single Event Category

Home Forums Calendar Products Events Calendar PRO Archive page for a single Event Category

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1540060
    Jacob
    Participant

    Hello,

    I’m wondering if it is possible to create a unique URL that links to previous events only in a specific event category. I have a two different types of event categories going on this site – bronwynspilsbury.com – and wanted to create separate links to archives per event category, rather than having them all show up in the same group.

    In other words, here’s the general archive link: https://www.bronwynspilsbury.com/events/?action=tribe_photo&tribe_paged=1&tribe_event_display=past

    We only have one event that is past now, but I think this will eventually grab events from all categories. Is there another bit that can be added to the URL for this archive so that it only shows trips to the category ‘bible-lands’ or the category ‘retreat’?

    thanks for your help,
    Jacob

    #1540710

    Hi Jacob,

    Thanks so much for reaching out!

    You can try adding the category slug to the end of your past events URL, so something like this:

    https://www.bronwynspilsbury.com/events/?action=tribe_photo&tribe_paged=1&tribe_event_display=past&tribe_eventcategory=41

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1540981
    Jacob
    Participant

    Jamie,
    Thanks for your reply. It seems, however, that I get all the past event results no matter what Category number I put in to this URL. The category I want is number ‘6’ – which seems to work. But if I put in category number ’18’ (Greece) – it shows the same results.
    Any other ideas?
    cheers,
    Jacob

    #1541635

    Hi Jacob,

    In other words, does this work for one category but not another?

    If so, can you try check this out in a private window, and/or clear your browser history and cache, and see if it works then?

    I just tested this out with different categories on my own test site, and it appears to work as expected.

    Let me know how that goes!

     

    Thanks,

    Jaime

    #1543133
    Jacob
    Participant

    Jaime,

    Thanks for the follow-up. I’ve tried this in Incognito mode (and
    another browser) and am still getting the same results. Here’s a quick
    video of what I’m seeing:

    https://www.useloom.com/share/aee6eb45a3284fdeaacfef0afbfc8a68

    Perhaps I’m missing something…or do you have any other thoughts on how
    to fix this?

    #1543158
    Jacob
    Participant

    Jaime,

    Thanks for the follow-up. I’ve tried this in Incognito mode (and another browser) and am still getting the same results. Here’s a quick video of what I’m seeing:

    https://www.useloom.com/share/aee6eb45a3284fdeaacfef0afbfc8a68

    Perhaps I’m missing something…or do you have any other thoughts on how to fix this?

    thanks,
    Jacob

    #1543182

    Hi Jacob,

    Thanks for creating that video.  Are there other past events, or is that the only one?  In other words, are there past events within other categories?

    If not, perhaps you can set up a test event within another category so that you can test if the functionality is working.

    As far as changing the “Past Events” wording, you can use the snippet provided in the following tutorial to help you do that:

    https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/

    The string that you’ll want to change is “Past %s”

    Let me know how that goes!

     

    Thanks,

    Jaime

    #1545915
    Jacob
    Participant

    Thanks, Jaime.

    The site does not yet have past events within other categories. But in
    a few weeks, it will. I’ll wait until that time to play around further
    with the category issue.

    With regard to changing the text, I have added the following PHP to my
    child theme, but it didn’t seem to work:

    $custom_text = array(
    ‘Past Events’ = ‘Previous Journeys’,
    );

    Any thought on where this code went wrong?

    #1546218

    Hi Jacob,

    Okay, let me know how that goes! Just so you know, this thread will self-close in three weeks without a response, so if that happens, you can just open a new thread and reference this one so that we can jump back in.

    You’ll want to add the full snippet to your theme’s functions.php file, here is the example:

    https://gist.github.com/theeventscalendar/734adb9e94f11b940e5f

    Let me know how that goes!

     

    Thanks,

    Jaime

    #1562755
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Archive page for a single Event Category’ is closed to new replies.