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.
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, 5 months ago by gefusz.
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