Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add taxonomy attribute to categories block #51388 #58033

Closed
wants to merge 3 commits into from

Conversation

Tropicalista
Copy link

FIx #51388

Why?

Custom taxonomy list can be displayed by creating a variation of categories block.

How?

By simply adding a taxonomy attribute we can leverage the wp_dropdown_categories to display any taxonomy.

Testing Instructions

  1. Register a custom taxonomy
  2. Create a variation of block categories with taxonomy attribute equal to 'YOUR TAXONOMY'.
  3. Insert somewhere to have a list of your taxonomy.

Copy link

github-actions bot commented Jan 20, 2024

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core.
  • Labels found: [Block] Categories, First-time Contributor.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jan 20, 2024
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @Tropicalista! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@ockham
Copy link
Contributor

ockham commented Sep 18, 2024

A taxonomy attribute was added to the Categories block in #65272, so I'm closing this PR.

Regardless, thank you very much for your contribution! 😄 Sorry that it never got any feedback when you filed it; it must've flown under people's radar, including my own 😕

@ockham ockham closed this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Categories Affects the Categories Block First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add variations for taxonomy lists
3 participants