Google index for past events

Home Forums Calendar Products Events Calendar PRO Google index for past events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1090426
    Alain
    Participant

    Hi,

    Is there a way to tell Google to noindex the events once they past.

    Regards,

    #1090662
    George
    Participant

    Hey Alain,

    Thanks for reaching out!

    There is unfortunately no way to pull off different noindex rules for events based on whether they’re “past” events or not, at this time. It may be possible with some extensive custom coding, but that’s something you’d have to take the reins on since we unfortunately cannot help with custom code.

    You MIGHT have some success with this by using custom code like the following:

    function tribe_try_to_noindex_past_events() {

    if ( tribe_is_past() ) : ?>
    <meta name="robots" content="nofollow" />
    <?php endif;
    }

    add_action( 'wp_head', 'tribe_try_to_noindex_past_events' );

    I hope this helps, even it is just a starting point for further development and customization on your end.

    Cheers!
    George

    #1097096
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Google index for past events’ is closed to new replies.