Empty URL on event category pages

Home Forums Calendar Products Events Calendar PRO Empty URL on event category pages

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #20607
    highasp
    Participant

    When clicking on an event category that has no scheduled events in the current month there is no title nor permalink info at the top of the page. So for example –

    http://shoholatwp.org/events/category/board-meetings/ – is fine
    http://shoholatwp.org/events/category/office-closures/ – is missing the category permalink and page title.

    Any ideas on how I can fix this?

    #20635
    Jonah
    Participant

    Hi Elizabeth,

    Sorry to hear about this. Have you tried switching the Events Template in Settings > The Events Calendar > Template? Try that and let me know if that does anything.

    Thanks,
    Jonah

    #20654
    highasp
    Participant

    Hi Jonah! Thank you for your response. Changing the template worked! Awesome!

    I also managed to find the code from the events template that I should be using and figured it would be easier to update my page template with that one line than adding my changes to the events template. I’m trying to add it as an if/else statement, except that I’m doing something wrong. Would you be able to take a look and let me know what I’m doing wrong?

    page_parent ) { // the page is “Events”, or the parent of the page is “Events” ?>

    <a href="” rel=”bookmark” title=” “>

    #20655
    highasp
    Participant

    Let me try again…

    page_parent ) { // the page is "Events", or the parent of the page is "Events" ?>

    <a href="" rel="bookmark" title=" ">

    #20656
    highasp
    Participant

    Sorry for the multiple posts! Figured out pastebin (I hope!) – http://pastebin.com/gmLPt5Ep

    #20670
    Jonah
    Participant

    Hi Elizabeth,

    I don’t think there should be an actual page for events because the plugin automatically creates one and is_page() won’t work to detect that page. Instead you can use portions of this code as your conditionals for the various event related pages: https://gist.github.com/2415009

    Does that help?

    – Jonah

    #20681
    highasp
    Participant

    Hey Jonah that was exactly the info I needed! Thank you so much for your help!

    #20743
    Jonah
    Participant

    Glad to hear it! Let me know if there’s anything else you need with this.

    Cheers,
    Jonah

    #977093
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Empty URL on event category pages’ is closed to new replies.