• Resolved cyberney

    (@cyberney)


    Since I upgraded 2.0.6 the Search Everything Plugin, written by Dan Cameron doesn’t work anymore. Had anyone the same problem and solution? Or is there maybe another plugin with the same functionality that is working on 2.0.6? Thank you.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Rongo, I didn’t realise that until now and I too find it amazing. I knew you couldn’t have categories for pages (which seems pretty dumb) but didn’t realise about the searching. I realise WP is a blogging tool primarily but if you are going to have a feature like pages it seems a good idea to implement it properly.

    Anyone know of an alternative system that treats pages and blog entries equally?

    As Westi suggests replacing \"publish\" with \'publish\' works for me.

    foolswisdom, would you like to show us exactly how the code of the preg_replace looks like in your case now? I tried several variants, but only get errors. Thanks

    [edit:] I just did a fresh install locally and tried:
    $where = preg_replace(' AND (post_status = 'publish'', ' AND (post_status = 'static' or post_status = 'publish'', $where);
    Locally this works fine. However, on upgraded sites not. That’s weird.

    Ok, I tried the search static plugin and modified the query like below and now it works:
    $where = preg_replace("'(post_status = 'publish'.*'", "(post_status = 'static' OR post_status = 'publish')", $where);

    All those slashes and ticks …

    Hmm, for some reason, this is still not working for me, even with the suggested fix. As before, doing a search for a specific term I know exists only on one single static page, I am getting search results that list every post and page on the site.

    It is indeed including pages in the search results, but not limiting the results to just the specific query. In other words, i should be getting one single search result, not 300 for a term I know only exists one specific page. It might as well be doing a search for a wildcard since every post and page shows up in the results.

    Weird.

    Rongo, it seems the comment system here is stripping my backslashes. In my snippet some slashes are missing. That’s the reason the preg_match as shown replaces the search query with something which returns everything.
    $where = preg_replace("'\(post_status = \'publish\'.*'", "(post_status = 'static' OR post_status = 'publish')", $where);
    This looks better, hope it works for you

    Thank you so much. This works perfectly again. You have no idea how much I appreciate the help folks.

    Thread Starter cyberney

    (@cyberney)

    All right, thanks a lot everybody, especially Matthijs for solving this issue!

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘2.0.6 kills plug ins’ is closed to new replies.