• I’ve got a page acting as custom search page. On that page, I’m using a separate WP_Query variable/custom loop for filtering the posts.

    If you pass a search term via a custom $_GET variable to the page (not the standard ‘s’ query var), the custom query returns the enhanced “Search Everything” results as expected.

    The problem is, I’m using nearly identical code for AJAX searching/filtering, but Search Everything doesn’t seem to be triggering.

    I hope this makes sense — I’m more than happy to provide any details you may want/need.

    Thanks!

    • This topic was modified 8 years, 2 months ago by dkeeling. Reason: clarifying the title
Viewing 1 replies (of 1 total)
  • Thread Starter dkeeling

    (@dkeeling)

    For anyone who may find this, apparently Search Everything does not work for AJAX requests, at least when you’re doing them the correct way through WordPress and using the “admin-ajax.php” url. I was able to get around it by setting the AJAX url directly to the PHP script in my theme.

    It works fine now, but again, it’s not the way you’re supposed to manage AJAX calls in WP.

    I couldn’t believe this issue hasn’t come up before… Seems like it would be fairly common.

Viewing 1 replies (of 1 total)
  • The topic ‘How to trigger Search Everything on an query being pulled in via AJAX’ is closed to new replies.