question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multiple page types for query-posts plugin

See original GitHub issue

Feature 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:open
  • Created 4 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
issue-label-bot[bot]commented, Nov 8, 2019

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.

1reaction
sustainedcommented, Dec 28, 2019

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found