Skip to content

Fix posts query filtering by post_type and term_slug#113

Open
dChiamp wants to merge 1 commit intomainfrom
fix-posts-query-filtering
Open

Fix posts query filtering by post_type and term_slug#113
dChiamp wants to merge 1 commit intomainfrom
fix-posts-query-filtering

Conversation

@dChiamp
Copy link
Copy Markdown
Contributor

@dChiamp dChiamp commented Mar 28, 2026

  • term_slug no longer overwrites an explicit post_type param; taxonomy inference only runs when post_type is omitted
  • term_slug taxonomy search is now scoped to taxonomies registered for the requested post_type(s), preventing cross-CPT term collisions
  • post_type and term_slug both accept comma-separated values; multiple term slugs are matched with an OR tax_query grouped by taxonomy

- term_slug no longer overwrites an explicit post_type param; taxonomy
  inference only runs when post_type is omitted
- term_slug taxonomy search is now scoped to taxonomies registered for
  the requested post_type(s), preventing cross-CPT term collisions
- post_type and term_slug both accept comma-separated values; multiple
  term slugs are matched with an OR tax_query grouped by taxonomy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant