How can I filter Query Loop to show only posts in current category?
How can I filter Query Loop to show only posts in current category?
How can I filter Query Loop to show only posts in current category?
Try this //functions.php function disable_all_block_settings($metadata) { if ($metadata[‘name’] === ‘core/image’) { $metadata[‘supports’] = []; $metadata[‘styles’] = []; } return $metadata; } add_filter(‘block_type_metadata’, ‘disable_all_block_settings’);
Latest WordPress Version Changes to Block Editor Template
how can I remove all default settings in Gutenberg blocks? example core/button
Not allowing my site to be embedded elsewhere via oEmbed
You will need to add a column before you can see the Layout setting.
Block Editor – WordPress 6.1 – CPT Archive Issue – While the title changes in the loop, all records display the same data
Ok so I don’t feel very good about this solution, but – using the render_block hook: conditional to find the custom block set the $block_content variable=””; to clear it (or if you want to nest something inside tags, you can try to explode $block_content) loop through each child block and pull out the innerHTML, append … Read more
How to add a class to a core block in both admin editor and frontend?
The trouble is that they ‘enqueue_block_assets’ is not the right hook to use for conditional resources anyway. The correct hook to use for the backend is : add_editor_style( ‘path/to/my-core-style-overrides.css’), which should be inside ‘after_setup_theme’ hook. This will ensure that these styles are incorporated in the admin editor iframe only and in all places where that … Read more