Site logo

Archived topic

Query Loop Include Post No Results

16 replies · Started by Ian on November 3, 2022

Viewing posts 1–15 of 17

When using the Query Loop to Include Posts, I cannot locate a few specific posts when searching for title or url keywords or post ID. Have opened up a ticket with web host and they do not see any php or memory errors. Never ran into this before even on very large sites. Any ideas on how I can target posts to display in the Query Loop when a search cannot locate them?

Hi Ian,

Can you make sure you enter the full title of the post when trying to search?

It will return No search result if it actually returns a lot of posts, so that the editor doesn't crash.

Interesting. I am getting No options as a return. Is that a clue?

By the way, I have tried searching for the exact title, exact URL without hyphens etc...

Sounds good. I have provided the creds in the private info area.

I see. It's most likely because of your AJAX search plugin. Was it working before?

If you disable it, does the Search functionality work?

If so, it might be best to reach out to the support of this plugin for assistance with regards to this.

I am thinking along those lines that something is limiting the search in the loop. I have a site with over 1000 posts and it finds the proper one very easily.

The staging site actually do not have the search plugins activated. The site is already running only bare minimum plugins as a test, I only ran GP Premium, GB and GB Pro and still not working. Do you think it could be a memory limit issue at the web host?

I see. I actually wasn't able to check the staging site. I was only able to test the live site's search functionality.

To clarify, the search functionality doesn't work in the staging site as well?

We might need to recheck to re-access the issue.

Let me provide the staging access here.

Thank you. The search functionality seems to be working as expected in the staging site.

Are you encountering issues here as well?

It's the search function in the Loop when trying to use "Include Posts". Were you able to include the "40000" post?

I see. Yes, having that many posts may result in "Timeouts" when loading something in the Backend.

In Tools > Site Health > Info > Server, what value is PHP Time limit? You may need to increase this with the amount of Posts you have.

Let us know.

Here are the settings. These seem fairly high already. Which one(s) do you think we need to ask the web host to increase so we can test?

PHP max input variables: 10000
PHP time limit: 600
PHP memory limit: 1024M
Max input time: 60
Upload max filesize: 640M
PHP post max size: 1024M

Hi Ian,

When I tried to search with the full title of the 2 posts in WP posts, one returns 161 results, and the other returns 22 results.
https://www.screencast.com/t/kNpfCnYLtF

I could be wrong, but I think that might be the reason, also the 2 posts are pretty old.

I'll have Tom have a look, it's an odd one.

This archived topic is closed to new replies.