Skip to content

Add additional options to taxonomy filter blocks - #47

Merged
goldenapples merged 2 commits into
mainfrom
archive-filter-controls
Jul 23, 2026
Merged

Add additional options to taxonomy filter blocks#47
goldenapples merged 2 commits into
mainfrom
archive-filter-controls

Conversation

@goldenapples

@goldenapples goldenapples commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Adds several additional attributes to the taxonomy filter block which can be used to curate the terms displayed - "includeTerms", "excludeTerms", "maxVisibleTerms", and "showAllLabel".

This can be used to select most prominent topics to feature, while allowing viewers to still expand the full list:

image

Adds several additional terms to the taxonomy filter block which can be
used to curate the terms displayed - "includeTerms", "excludeTerms",
"maxVisibleTerms", and "showAllLabel".
Comment thread src/taxonomy/render.php Outdated
* @param \WP_Term $term Term to toggle.
* @return string URL representing the selection with this term flipped.
*/
$toggle_url = function ( \WP_Term $term ) use ( $selected_terms, $query_var, $page_var, $base_url ) : string {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to be in a namespace? (use of \)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 fixed in 029cd5e

@goldenapples
goldenapples merged commit 6ee0140 into main Jul 23, 2026
1 check passed
@goldenapples
goldenapples deleted the archive-filter-controls branch July 23, 2026 14:44
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.

2 participants