The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Search Engine
Fixing issue with "Recent Posts" interference (2 posts)

  1. trickey
    Posted 5 years ago #

    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())
    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!

  2. Scott Kingsley Clark
    Plugin Author

    Posted 5 years ago #

    Thanks for the fix, will implement in the next version!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Search Engine
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic