Partially (expands on #29)and adds new blocks and rich text for seo and copy on pages#32
Open
zamartz wants to merge 9 commits intohumanmade:mainfrom
Open
Partially (expands on #29)and adds new blocks and rich text for seo and copy on pages#32zamartz wants to merge 9 commits intohumanmade:mainfrom
zamartz wants to merge 9 commits intohumanmade:mainfrom
Conversation
- add a valueType attribute plus inspector control so the block can output either the selected term’s title or its description (sort filters always use title), and update the PHP helper to return the correct sanitized value - expand the RichText format modal with the same value-type dropdown, auto- insert a descriptive placeholder like “taxonomy tag description”, and update existing spans instead of inserting duplicates when re-editing - rebuild the taxonomy-text editor script/assets and enqueue them so both the standalone block and inline format always reflect the new options
…compiled assets only - Add limitToCurrentResults attribute and inspector toggle so taxonomy filters can optionally restrict choices to terms attached to posts in the current query loop. - Cache each query loop’s post IDs via the_posts and use them when rendering taxonomy filters, falling back to get_terms() when the toggle is off. - Introduce a Sort block that mirrors the Query Loop “Order by” UI, exposes preset order options, and renders a dropdown wired into the interactivity store. - Add a shared taxonomy‑text helper and register the compiled block so authors can output dynamic <span class="taxonomy-text …"> with prefix/suffix controls. - Add a RichText format + modal for inserting the same taxonomy text inline in Paragraph/Heading blocks, including value‑type (title/description/page) and page‑number support with “only show after page 1”. - Add a Yoast primary category filter type with an optional “link to term archive” toggle for both block and inline format. - Normalize filter/search/sort URLs around query-post_id + query-* parameters (with legacy support), ensure sort uses a readable query-post_orderby string, and keep pretty /page/n pagination in sync via redirect + history updates. - Enqueue the taxonomy‑text editor assets in the block editor and add a router fallback so filters still work when the interactivity router is unavailable. - Strip dev tooling (src/, npm manifests, node_modules) from the shipped package so only compiled plugin assets are deployed.
Adds support for displaying the current search term from WordPress search
queries (?s= parameter) in both the standalone taxonomy-text block and the
RichText inline format.
Changes:
- Add "search" to filterType enum in block.json
- Add "Searched Term" option to Filter Source dropdown in editor
- Extract search term from $_GET['s'] or get_query_var('s')
- Decode URL-encoded search terms (e.g., "garden+tools" → "garden tools")
- Hide Value Type and Link controls for search filter (search terms only
support prefix/suffix, no description or link options)
- Update both edit.js (standalone block) and format.js (RichText format)
The search filter will display the searched term when a WordPress search
is active, allowing dynamic display of search queries in content.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Notes
Testing