Support » Plugin: Relevanssi - A Better Search » Stop Listing Page Revisions

  • Resolved letheos

    (@letheos)


    This plugin lists in the search results all the page revisions I have. Is there a way to change this behavior?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mikko Saari

    (@msaari)

    It shouldn’t. Something unusual in your setup? What kind of settings you have in Relevanssi?

    Nothing extraordinary in the setup, I believe. WP is used as a CMS, pages are the main content type we use. Magic Fields and BBPres, are some of the plugins used. You can take a look here: http://www.rodi.it/?s=attrazioni&submit.x=0&submit.y=0

    Plugin Author Mikko Saari

    (@msaari)

    I don’t know, Relevanssi should definitely not index revisions. Hard to say why it’s doing that.

    Anybody else having this problem?

    I don’t have this problem. Try to reindex maybe it will help.

    Well, I tested on another WP installation and I had the same problem. Pages that have a revision (/pageslug/123-revision/) appear on the search results. To my view this a bug. A quick fix was to add at line 289 the following code:
    if ('inherit' == $status ) $post_ok = false;

    I haven’t yet test it thoroughly but it seems to work, at least in my case.

    Plugin Author Mikko Saari

    (@msaari)

    I suppose you mean line 1289? Yes, that should fix it, but inherit posts should not be in the database in the first place.

    Plugin Author Mikko Saari

    (@msaari)

    Actually, I noticed that Relevanssi Premium has a check in that bit to prevent revisions appearing in the results. I’ve added that check to the free version as well (from 2.9.2), so you don’t need to fix every version.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Stop Listing Page Revisions’ is closed to new replies.