Partially (expands on #29)and adds new blocks and rich text for seo and copy on pages - #32
Partially (expands on #29)and adds new blocks and rich text for seo and copy on pages#32zamartz wants to merge 9 commits into
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.
|
Triaging the open PRs. Thanks @zamartz — there's clearly a lot of useful work in here, but as it stands it's very hard to review or merge, and I'd like to suggest a way to get it landed. It needs a rebaseThe branch is ~66 commits behind
Also please drop Please split it upThe diff is +2039 across four largely independent features:
Each of those is reviewable on its own; together they aren't, and one contentious piece blocks the other three. The +716 lines in Suggested order, smallest and least contentious first:
If you open the first of those as a fresh, rebased PR against current Generated by Claude Code |
Summary
Notes
Testing