Skip to content

Add All option to Format dropdown on events page#19

Closed
dd32 wants to merge 1 commit intoproductionfrom
fix/claude/1292-format-dropdown-all-option
Closed

Add All option to Format dropdown on events page#19
dd32 wants to merge 1 commit intoproductionfrom
fix/claude/1292-format-dropdown-all-option

Conversation

@dd32
Copy link
Copy Markdown
Owner

@dd32 dd32 commented Mar 12, 2026

Summary

  • The Format filter on the events page is a single-select dropdown (radio buttons) with no way to reset back to showing all formats
  • Adds an "All" option as the default selection, consistent with how the Patterns directory handles its single-select filters
  • When no format is actively filtered, "All" is pre-selected; selecting "Online" or "In Person" filters as before
  • The empty value for "All" is safely handled by array_filter() in get_query_var_facets(), so it has no effect on the query

Test plan

  • Visit the events listing page and open the Format dropdown
  • Verify "All" is listed as the first option and is selected by default
  • Select "Online", apply — verify only online events show
  • Re-open Format, select "All", apply — verify all events show again
  • Select "In Person", apply — verify only in-person events show

Fixes WordPress#1292

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dd32 dd32 force-pushed the fix/claude/1292-format-dropdown-all-option branch from f6b6475 to ed2b611 Compare March 24, 2026 02:49
@dd32
Copy link
Copy Markdown
Owner Author

dd32 commented Mar 24, 2026

Filed upstream: WordPress#1669

@dd32 dd32 closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant