In the block query settings, it has "inherit":true
. This means the rest of the parameters are ignored and instead the global query is used.
You could consider setting inherit
to false
, or otherwise use filter hooks to change the query as needed, such as pre_get_posts
.
Related Posts:
- Is it possible to add settings to a search block in Gutenberg?
- Deactivate Gutenberg tips forever – not Gutenberg
- How do I register multiple blocks with block.json and register_block_type_from_metadata?
- Disable Gutenberg text-Settings in all blocks
- gutenberg block – how to force update after attribute changed?
- How can I add a custom attribute to Gutenberg core blocks?
- How to use the WordPress < LinkControl /> Component
- Remove border radius setting from the Gutenberg button block?
- Add PHP block template to content using wp_insert_post
- Gutenberg reusable blocks – is it possible to customise an instance?
- Dynamic gutenberg block with react instead of php
- File structure and react setup when creating multiple Gutenberg blocks
- Gutenberg block get categories in SelectControl
- How to access “default” property of attribute in Gutenberg
- How to use “getEntityRecords” for user data?
- WordPress Block Variation for Gallery Columns
- How to disable alignments for block patterns?
- How to change the admin/password when using the E2E Test Utils for Gutenberg
- Create a custom render Appender button to add Inner Blocks
- Get a WordPress Gutenberg Block Attribute to use it in frontend
- Rename reusable blocks shown in navigator
- How to troubleshoot a custom Gutenberg block error: “This block has encountered an error and cannot be previewed”
- Two Gutenberg components sharing the same Panel Body in Inspector Controls
- How to learn Gutenberg block development [closed]
- Unable to disable Gutenberg with plugin Classic Editor or Disable Gutenberg
- How to use the @wordpress/date block in the Gutenberg editor?
- Popover in a LinkControl style
- Is there any way to render the WordPress Gutenberg core/embed block in PHP by passing in the URL?
- How to use in Block Editor – react-bootstrap?
- Double container elements on custom block in editor
- How to target block variations with has_block()?
- How to add extra option to WP core gallery block?
- Use a React Component in conjunction with Blocks
- Make a custom block like default paragraph block, so that Enter starts a new block
- Custom gutenberg block not rendering with styles on frontend
- Gutenberg Block on Second Edit fails validation
- Import setAttributes() method in a separated module
- Gutenberg: How to use RangeControl in the editor itself and make it work?
- Adding content to Page settings rather than Block settings
- Detect if a block has been deleted
- How do I disable the block marketplace for Editors?
- How to use __experimentalCaptureChildToolbar
- Why is wordpress suddenly stripping away all newline characters and how to disable this?
- Gutenberg RadioControl saving data but not not selecting radio
- Override RenderCallback from LatestPosts
- Gutenberg on block move
- Gutenberg template lock but add/delete blocks programmatically
- Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]
- wp_get_global_settings is not updated on save_post hook
- How can I make Gutenberg block layout switchable without lost of current content?
- code block does not show in excerpt
- Is it possibe to prepend “ with icons or text?
- If you have multiple dynamic blocks with a post loop on a page, how do you avoid duplicates from inside the render_callback function?
- Modify core/image block by adding inner span to figcaption in save
- How to override a function in the wp_includes folder(block supports/colors.php)
- If is block name
- Is there a way to grab the current value of the editor in Gutenburg/Classic WordPress editor? (Not the saved value of the post!)
- Can I add custom code to gutenberg auto save?
- How to get the revisions feature back on the classic editor?
- how to use a Text component in javascript?
- Is there an obvious error in this React code for customizing a Gutenberg Block?
- Two content editors (gutenberg blocks) on the same page
- Gutenberg custom block: RichText underline button
- How to wrap Gutenberg blocks into a custom container (without using HTML blocks)?
- DateTimePicker script and style missing?
- Gutenberg pass properties to filter
- How to remove multiple blocks of Gutenberg at the same time?
- Pullquote Block Styles disappeared?
- Using useSelect creates “minified React error”
- How do I reinstate the “Add Block” feature that changes with the update?
- How to condition appearance of a gutenberg block via wp_is_mobile
- Can I strip WordPress classes from blocks?
- How to list all registered blocks
- Strange behavior of blocks in the editor
- Block editor not loading with rest api custom code
- In Full Site Editing, how do I get the templates I created to appear in the site editor when populating a new page?
- Dynamically add table of contents and add anchor based on heading innerHTML
- How to defer block.json scripts?
- How can I prevent a user from selecting exactly one of two (not both or none) categories on a post?
- How to add a tooltip for MediaReplaceFlow from @wordpress/block-editor
- Star Rating block is not present from list of blocks or from / shortcut
- Gutenberg: is is possible to get the current permalink of the post?
- WordPress custom Block showing error in Posts editor but working in Pages editor
- Implementation of React-Datepicker component with Gutenberg in WordPress
- How disable settings on core/image (Gutenberg) block
- WP dynamic block – change content without saving
- How to prevent the core/group block from being ungrouped?
- Get FontSize from the InspectorControls Standard Control (typography.fontSize)
- Splide carousel block – innerBlocks not selectable after innerBlocks change
- Translating Gutenberg Block – JSON Translation Files Not Loading
- ServerSideRender crashes block in editor
- TT3 make img in 2nd column same height as content of 1st column
- How to get Gutenberg pattern sync status for custom pattern listings table?
- Add/remove capability for blocks theme nav menu
- what is the function of the view.js file?
- What is the correct way to send Markdown code via the API?
- How do I edit a block pattern of mine?
- How to apply a class to a portion of text in a paragraph block?
- How to apply block transforms for a block with innerBlocks?
- Creating patterns with BlockArt