Feature Request – To fetch posts from all Custom Post Types
-
Hi,
Currently the first criteria in the AQL or even the Core QL is to select the “Post Type”. Now if I create multiple Post Types using ACF, all of them appear as individual entries in this “post Type” drop down. I want to use the AQL block to make it fetch posts from all the different post types I have and not just one post type. How does one do that? Let’s say I run a recipe website and I have multiple Custom Post types like baked, grilled, steamed, fried, raw. When I create a post using one of these Custom post Types let’s say ‘baked’ , I want to add a AQL block at the end of the post which fetches posts from all the custom post types i have and not just one post type so that the user is shown posts from all different custom post types.
I see there is an option to select other post types under the “Additional Post Types” option under the “Advanced Query Settings” section but one has to manually type the post type name and select the different post types here. Is there an option to select all available post types? I understand everything is a post type in WP, but here i refer to posts and custom post types excluding pages, attachments etc, basically blog posts. Can an option to select all available post types (excluding pages, attachments etc) be implemented or option to select all post types including pages, attachments etc but another field below it to exclude certain post types like pages etc? Can this be implemented?
Or a drop down of all available post types (posts, custom post types, pages, attachments etc) with a checkbox to select the ones we want would also be a good solution instead of user having to type out each of them. Like a filter selection in excel where user can quickly select all or individual post types using a checkbox?
Thanks.
- The topic ‘Feature Request – To fetch posts from all Custom Post Types’ is closed to new replies.