Indexation of thousands pages

Home Forums Calendar Products Events Calendar PRO Indexation of thousands pages

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #16742
    Jonah
    Participant

    Hey John, you should be able to modify Joey’s code like so to no-index single day pages:

    add_action('wp_head','tribe_dont_index_single_events');
    function tribe_dont_index_single_events() {
    if ( is_singular() || tribe_is_day() && get_post_type() == TribeEvents::POSTTYPE )
    echo '';
    }

    #16743
    Joey Kudish
    Member

    Good catch Jonah.

    FWIW, I’ve also fixed the original gist at https://gist.github.com/1964698

    #16892
    John
    Participant

    I alredy figure out this…

    [code]
    add_action(‘wp_head’,’noindex_day’);
    function noindex_day() {
    if (get_query_var(‘eventDisplay’) == ‘day’)
    echo ”;
    }
    [/code]

    #16893
    John
    Participant

    @Jonah @Joey Your code is not working… because all single pages also got a nofolow meta.

    But I already fix this…

    It’s working now using function.php (theme file)

    https://gist.github.com/2066204

    #16951
    Rob
    Member

    Ah, so it looks like you’ve figured this out already John? Let me know if you’re still having any issues here.

    #16959
    John
    Participant

    Thanks, Yes, I already fixed this proble

    #16960
    Rob
    Member

    Excellent. Glad to see you got it taken care of, John. If there is anything else we can help with down the road let me know. Thanks again for your support and using the plugin.

    #976364
    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 8 posts - 16 through 23 (of 23 total)
  • The topic ‘Indexation of thousands pages’ is closed to new replies.