• Hi there,

    Mark new posts mess up my search query.
    I’m currently using Search & Filter Pro to display search results on the search.php page and searching with any terms or text has some kind of conflict with MNP. Basically, the search results are not what it supposed to be if MNP is activated.

    It seems that MNP is altering some of the query filters somehow, or adding an extra filter value or something.

    Could you please have a look?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author i.lychkov

    (@ilychkov)

    Hello,

    I just tried checking the free version of Search & Filter, and I cannot seem to be able to reproduce the issue. And the Pro version isn’t available for testing.

    Can you please provide more information? Maybe I could think of something.

    Thread Starter gefusz

    (@gefusz)

    Hi,

    Have a look at these two search parameters.

    This is with the default search form:
    https://gaborkriston.com/mokkapp/?s=teszt

    This one with the Search and filter plugin:
    https://gaborkriston.com/mokkapp/?sfid=90&_sf_s=teszt

    Please note I’m using Toolset Blocks to edit archive pages.
    Even the templates loaded are different.
    If I turn off the MNB plugin, both pages are identical.

    Plugin Author i.lychkov

    (@ilychkov)

    They both say “no results found”?

    Thread Starter gefusz

    (@gefusz)

    Ohh sorry, searching is restricted.

    In the meantime, I’ve figured out that post categories (taxonomies) must be excluded rather than included. This has fixed the search query issue.

    But somehow the search results loop style is still based on the home (blog) template rather than the search archive page template.

    I think is this because of S&F and Toolset conflict.

    • This reply was modified 2 years, 6 months ago by gefusz.
    Plugin Author i.lychkov

    (@ilychkov)

    Searching through the source code of MNP, I honestly don’t see anything that could cause the issue.

    Please try the following:

    1) changing the plugin’s settings (most importantly turning off the markers completely)

    2) disabling (commenting) the hooks in mark-new-posts.php one by one – lines 55 to 72

    Tell me if there’s something in particular that makes the bug disappear.

    Thread Starter gefusz

    (@gefusz)

    Hi again,

    I don’t use any markers from the settings, I’m rendering them from shortcode to customize the look of it.

    This part is making the trouble from line 55:
    —————————————————–
    add_action(‘init’, array(&$this, ‘init’));
    if ($this->options->mark_after !== MarkNewPosts_MarkAfter::OPENING_BLOG) {
    add_action(‘pre_get_posts’, array(&$this, ‘mark_posts_as_read’));
    }
    ——————————————————
    Obviously is this because of the “pre_get_posts”.
    But never mind, I’ve managed to bypass this so it is working now.

    By the way, is there any solution to reset the markers?
    From a desktop browser, it is easy to delete the value from “mnp_c3722a21” cookie, which resets them. But from a mobile browser, even if I delete the cookies, it doesn’t reset them. On some browsers mainly iPhones, it doesn’t even work at all. None of the posts have the marker. Why is that?

    I’ve seen that there is a “Reset” button in the settings menu but it does nothing. Nothing happens if I click on it.

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search query conflict’ is closed to new replies.