This does indeed appear to be a bug as I managed to get this working by extending AQL to add a new page filter. See working extended field and broken existing field here.
The new extended field can query all pages whereas the current ‘Include Post’ fields appears to limit available pages.
-
This reply was modified 1 year, 6 months ago by
harrisric.
Hello and thanks for using AQL.
I am trying to reproduce this locally and cannot seem to. I have a couple of questions:
- Are you seeing any errors in you console?
- How many pages do you have in your site?
- Is the AQL instance on a page/post or a template?
Thanks
-
This reply was modified 1 year, 6 months ago by
Ryan Welcher.
Hi,
It’s the same for me. Lots of posts are missing from the dropdown field. I’ve 1700+ posts/pages in my site. Both AQL instance in post and template results are the same. Only a selected few posts are available for selection, and the rest seems to be missing.
I’m really having a hard time reproducing this. Clearly there is an issue but I until I can reproduce it I can’t fix it. I am going to try some more things and follow up.
Sorry for the frustration.
Hi Ryan.
Thanks for your support and apologies for the delayed response to your questions.
There are no errors in the console. We have approximately 50 Pages on the site, but Post types are not needed in our case so we don’t have any. The problem occurs regardless of whether we place the AQL block on a Page or Post (created for testing only).
Notably, the AQL block functions as intended when testing locally. However, not so when testing on our hosting environment. We are hosting with Pantheon. To fully test, we uninstalled all plugins except AQL and switched to Twenty Twenty-Four theme but still the problem persists.
Perhaps it’s Pantheon specific? @wyb4c is your site hosted with Pantheon also?
-
This reply was modified 1 year, 5 months ago by
harrisric.
-
This reply was modified 1 year, 5 months ago by
harrisric.
Would you be comfortable with giving me access to the site so I can test it there?
No worries if not, I have some theories on this but still and not able to consistently reproduce the issue.
I am experiencing the same issue. There are around 3K posts on the site and many of the posts do not show up in the drop-down, even if exact title is entered. Additionally, the posts are returned in admin searches and front-end site searches.
There is no console error when searching. However, if I enter from the Include Posts field (without any selected posts), there is a console error:
Uncaught TypeError: t is undefined
include_posts .../wp-content/plugins/advanced-query-loop/build/variations.js?ver=02d8ea1813ee567a1cd0:1
include_posts .../wp-content/plugins/advanced-query-loop/build/variations.js?ver=02d8ea1813ee567a1cd0:1
onChange .../wp-content/plugins/advanced-query-loop/build/variations.js?ver=02d8ea1813ee567a1cd0:1
I can confirm that posts are returned in REST API.
/wp-json/wp/v2/posts/?search={Post Title}
/wp-json/wp/v2/posts/?search={Post Title}&search_columns=post_title
-
This reply was modified 1 year, 4 months ago by
P.E.A. Lutz. Reason: Added more info about REST API results
Hi, I think we have the same issue. About 2000 posts, and very often the suggestion does not see a posts when starting to enter the title.
The post is easily found when searching in the WP backend or front end, but it is never suggested in the posts dropdown… Quite essential feature.
Thank you.
Unfortunately, we have to switch from the plugin as this issue makes it not usable. Instead, we are using a plugin that extends the standard query loop with ability to select specific posts. And we easily find any post with it, using the same UI as in AQL.
I hope you can solve this issue as your plugin is most powerful. But I noticed this issue described not only in this topic but in others as well.
I’m really sorry! I have not been able to dedicate much time to this issue. I will fix it and will update this thread when I do.
Thank you for the great plugin, I am sure to use it in future. We all have a limited time an a lot to do…