noindex on Main Calendar and Calendar Category Pages

Home Forums Calendar Products Events Calendar PRO noindex on Main Calendar and Calendar Category Pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1536082
    David
    Participant

    Our main calendar and calendar category pages have begun including the noindex meta tag as follows for no apparent reason:

    <meta name=”robots” content=”noindex,follow” />

    Examples:

    https://www.floresvilletx.gov/calendar-events/
    https://www.floresvilletx.gov/calendar-events/category/community-events/

    Individual event pages are fine and don’t include noindex. We’ve confirmed correct settings in Yoast SEO and are running the latest versions of The Events Calendar, The Events Calendar Category Colors, The Events Calendar Outlook Import Fix, and The Events Calendar PRO (4.6.16, 5.0.1, 1.0.4, and 4.4.26, respectively).

    Please advise how we can remove the noindex tag from these pages so that search engines can properly index these pages. Thank you.

    #1536818
    Jeremy
    Keymaster

    Hi David,

    Thanks for reaching out to us!

    The reason you see the noindex meta tag is because your main Events page is set as a calendar view. This way, it prevents a huge number of months being indexed, otherwise search engines could follow next / prev month links indefinitely.

    To remove that noindex tag, could you try to add the following snippet in your functions.php file? And could you confirm it solves the noindex, follow issue in the first instance?

    Cheers,
    Jeremy

    #1537065
    David
    Participant

    Hmm. We added that to our theme’s functions.php file and flushed all caches but it didn’t seem to make any difference. Any thoughts?

    Also, is there any way we could remove the noindex tag from the current month view (e.g., https://www.floresvilletx.gov/calendar-events/), but keep noindex on past an future month views (e.g., https://www.floresvilletx.gov/calendar-events/2018-06/)?

    Thanks!

    #1537340
    Mathew
    Participant

    David,

    There may be a more current function to accomplish this.


    add_filter( 'tribe_events_add_no_index_meta', '__return_false' );

    As for past and future, there’s an older article on PAST events that is a good starting point. I’ve had better success with tribe_is_past_event() instead of tribe_is_past() loop. As I mentioned, it’s a starting point. It will need tweaking.

    The technical docs are a great point of reference.

    The FUTURE one is a little more involved. It all depends on what you consider to be the future. One day, on week, one month, etc. There are ways to accomplish this with tribe_is_upcoming(). Again the technical docs are a great read.

    Best of luck.

    #1537521
    David
    Participant

    Thanks! This resolved the issue.

    #1537720
    Jeremy
    Keymaster

    Hi David and Mathew,

    Once again, thanks Mathew for jumping into the conversation and providing a great solution to this problem!

    David, I’m glad your issue is resolved.

    I’m closing this thread, but feel free to start a new one if you have other questions.

    Cheers,
    Jeremy

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘noindex on Main Calendar and Calendar Category Pages’ is closed to new replies.