generated from alleyinteractive/create-wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requestgutenbergRequires understanding GutenbergRequires understanding GutenbergtypescriptRequires understanding TypeScriptRequires understanding TypeScript
Description
Description of the bug
No matter the post types selected for the block, the wp/v2/posts/ endpoint is used for searching, which returns only posts.
Steps To Reproduce
- Add
pageto thewp_curate_duduplication_slotfill_post_typesfilter. - Update the query block to draw backfill from only pages.
- See posts display in the backfill instead of pages.
Additional Information
See here:
wp-curate/blocks/query/edit.tsx
Line 185 in b0d8273
| '/wp/v2/posts', |
Acceptance Criteria
- Remove custom logic for posts endpoint https://github.com/alleyinteractive/wp-curate/blob/develop/src/features/class-rest-api.php
- Convert to using the search endpoint (if possible, even if the search endpoint needs to be augmented to include additional data for this type of query) or create a custom endpoint for WP Curate specifically.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgutenbergRequires understanding GutenbergRequires understanding GutenbergtypescriptRequires understanding TypeScriptRequires understanding TypeScript