Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

How to query pages with no taxonomy

Started by David Novák 9 years ago · 4 replies · 615 views
9 years ago

Hi,
I know that I can query pages that have a taxonomy with url like this .../blog/category:someCategory. What I need is to query pages that have no taxonomy (let's say I need post that have no category). Is it possible to do this? How?

9 years ago

Hey!
Just make sure your post is visible. Then you can access it with the page URL.

9 years ago

Yeah, I know that. But I need to filter all posts that have no category.

9 years ago

I don't think this is possible

If you don't provide category in URL, like this

/blog/category:

You will get all the blog posts.

I think the only solution is building a custom plugin.

9 years ago

That's not really possible currently. It's something we hope to improve in future versions of Grav as it really needs an advanced query language to be able to perform queries of this sort.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago