Support multiple page types for query-posts plugin
See original GitHub issueFeature request
What problem does this feature solve?
Having multiple page collections, besides the standard _posts/
type, e.g. _jobs/
(to list all available job ads), _projects
(for a portfolio maybe), etc.
What does the proposed API look like?
Maybe the user could add injectByType: 'slug'
in the YAML frontmatter, where slug
would have to match _<slug>
in the directory name?
How should this be implemented in your opinion?
Within the saber-plugin-query-posts package, not yet sure of the technical implementation.
Are you willing to work on this yourself?
Yes. Would this feature be an OK addition? Is it maybe already solvable today somehow?
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Multiple post types in one post list | WordPress.org
I'm trying to add tow custom post type with specific categories from different post types, but it shows only posts from the first...
Read more >Multiple Post Queries - MasterPress
The MasterPress API offers many ways to retrieve multiple posts from your WordPress site, with post-related methods available in both the main WOOF...
Read more >Number of pages - multiple (custom) post types
I'm using the same query for my custom post_type archives, with a single post_type, adding a second to the query creates the same...
Read more >WordPress Custom Post Types: The All-In-One Guide ... - Kinsta
The wp_posts table stores all of the content of your posts, of all post types. So it doesn't matter if we're talking about...
Read more >Display Posts Shortcode – WordPress.com Support
The Display Posts Shortcode allows you to add a list of your blog posts to different pages. Using Arguments you can display specific...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Issue-Label Bot is automatically applying the label
feature_request
to this issue, with a confidence of 0.92. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
I agree, I think it’d be nice to just add basic support for multiple collections at first, that will stand alone as a rather nice feature and then afterwards discussion can be had about a querying system and whatever other bells and whistles?