WordPress.org

Ready to get started?Download WordPress

Forums

Search results duplicated if in more than one category (2.1) (8 posts)

  1. hristov
    Member
    Posted 7 years ago #

    With WP 2.1 a search will now repeat a post found through a search as many times as it has categories.

    So, for example, if I have a post tagged under 'technology', 'science' and 'sport', any search where that is a result will display the post three times.

    This didn't happen with previous versions. Any idea about a hack to only ever display a search result once? Thanks.

  2. yerkin
    Member
    Posted 7 years ago #

    Hmm, i have the same problem. It´s just like you say. If the post have many categories, it will repat on the search page....
    Any suggestions....

  3. Ryan Boren
    WordPress Dev
    Posted 7 years ago #

    What plugins are you using? There is a compatibility problem between WP 2.1 and certain plugins that will result in duplicate posts.

  4. yerkin
    Member
    Posted 7 years ago #

    oki, i found out that the problem was that i'm using the pluggin Event Calendar ( http://wpcal.firetree.net/ ). When i deactivated this pluggin, the search page works again.

  5. hristov
    Member
    Posted 7 years ago #

    Thanks for the solution yerkin. EventCalendar wasn't actually working since I upgraded anyway, so I'm dumping it. I've linked in to my Last.fm events as an adequate replacement.

  6. Gosh
    Member
    Posted 7 years ago #

    I've no problem with Event Calendar working with 2.1 and made the following change in eventcalendar3.php to get rid of the problem

    in function 'ec3_filter_posts_where' add the following to the first if statement

    || $wp_query->is_search

  7. randyaa
    Member
    Posted 7 years ago #

    I'm experiencing the same problem but its with the Category Visibility - RH Rv plugin. Does anyone have any experience with this one? I'm looking into a fix. If i figure it out I'll post it.

  8. jpc101
    Member
    Posted 7 years ago #

    There's a beta 2.1 version of the category visibility plugin available and it seems to work ok so far!

Topic Closed

This topic has been closed to new replies.

About this Topic