Support » Plugin: Search Engine » [Plugin: Search Engine] Fixing issue with "Recent Posts" interference

  • I’m doing a new blog site for a client and added your plugin to it. I love the functionality and understand it’s still in beta, but I found a major bug.

    If you add “search_engine_content()” on a search page or loop-search.php, it will overwrite the posts listed in the “Recent Posts” widget on the sidebar. It look like this is being caused by the search_engine_get_posts function. It’s tying in to the “the_posts” hook which is called by the “Recent Posts” widget. However, I’ve found an easy and permanent fix.

    On line 1047, change:
    if (!is_search())
    to
    if(!is_search() || is_dynamic_sidebar())

    This will cause the function to return if it is being called from a sidebar/widget. Just thought I’d share in case anyone else had run across this, and that it would be good to add to the next release.

    Thanks for this plugin! It’s awesome!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Search Engine] Fixing issue with "Recent Posts" interference’ is closed to new replies.