• Hello,
    When I was looking for why the search is so slow, I came across the problem that all post types are searched. I have only selected posts under “Search in custom post types”.
    What could be the problem?

    Also: Why does the search take so long when you click on the magnifying glass?

    Thank you for all the tips.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter skyfly024

    (@skyfly024)

    I seem to have found the problem for the search widget. I have now enabled “Don’t cache this widget” in the widget.

    But clicking on the magnifying glass continues to search in all post types. That’s why the search there probably takes forever (approx. 35 seconds)

    Thank you for all the tips.

    Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Make sure to check if the search override feature is enabled. That should force WordPress to fetch the results coming from ajax search lite instead of the default ones.

    If it’s still slow, then I suspect you may have a larger amount of posts available (10 000+ or so). Usually that takes a lot longer for the default WP search, it should be better when the override is activated though.

    All the best,
    Ernest

    Thread Starter skyfly024

    (@skyfly024)

    Thank you,
    That got me a lot further.
    However with the GET method I get a blank page with no search results. The POST method displays search results correctly. But that means I have a cookie problem, right?

    1. Problem with the OPTION “Try to replace the theme search with Ajax Search Lite form?” to ON. It also overwrites my “Search (Custom Post Type) widget. However, I urgently need the unchanged widget in my post type charts_item in order to only receive search results from this area in the music charts area. Is there a way to exclude pages where the option should not be used?

    Thank you.

    • This reply was modified 1 year, 3 months ago by skyfly024.
    Plugin Author wpdreams

    (@wpdreams)

    You are welcome.

    POST is fine as well, the back-end only shows a message in case you are using a GDPR policy to include the cookie names on your own discretion.

    I’m afraid the override can’t be adjusted that way. The filter basically applies to a core WordPress hook, and the rest is applied on the theme end.
    I guess it would be possible somehow by detecting the current page ID and removing every filter from the get_search_form hook. That is only possible programmatically unfortunately.

    All the best,
    Ernest

    Thread Starter skyfly024

    (@skyfly024)

    Hello Ernest,
    thanks for the great support. I have now bought the Pro version.
    I have a little problem. When searching by clicking on the magnifying glass or using Enter, the results are displayed in the correct order. So the way I configured it under “Search Sources > Ordering > Use separate ordering for each post type group? = On”.
    Unfortunately, this order is not displayed in the opened results window (without Enter or clicking on the magnifying glass).
    How can I set the sorting of posts by post type here?

    Thanks,
    G?sta

    Plugin Author wpdreams

    (@wpdreams)

    Hi,

    You are welcome!

    For pro version support please use this url. As per forum rules, it is not allowed to discuss paid plugin versions in these forums.

    All the best,
    Ernest

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Always searches in all post types – Ignores “Search in custom post types”’ is closed to new replies.