WP 6.8: Meta boxes no longer auto-scroll due to new resize handle

Has a Temporary CSS solution. I hope WordPress at least makes this optional so users can disable it if they want to. Add this to functions.php add_action(‘admin_head’, function () { echo ‘<style> .edit-post-meta-boxes-main.is-resizable { height: auto !important; min-height: 100% !important; max-height: 900% !important; overflow: visible !important; } .components-resizable-box__container.editor-resizable-editor { height: auto !important; } .editor-visual-editor { … Read more

$m in pre_do_shortcode_tag

The documentation for $m is available in the function that the pre_do_shortcode_tag filter gets called in, do_shortcode_tag(): /** * … * @param array $m { * Regular expression match array. * * @type string $0 Entire matched shortcode text. * @type string $1 Optional second opening bracket for escaping shortcodes. * @type string $2 Shortcode … Read more

What’s the point of the default .htaccess?

Ok, I figured this out: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] The single dot in the 3rd line matches any single character, but the replacement applies to the whole string. So, whatever URL you asked for, if it doesn’t match an existing file or directory name, is turned into a request … Read more

Generate list of posts on a page, but fill shortcode values from ACF fields on that page

I have actually found a really elegant solution to this myself. The issue is not with the [random-posts-list], it is with the script used to generate the [county] shortcode. Instead of using $post_ID = get_the_ID(); I should have been using $post_ID = get_queried_object_id();. This is a built-in WordPress query. With the above amend, I also … Read more

Correct filter hook to modify the output of a custom taxonomy API call?

The rest_grammar_terms_query hook should normally fire, but it’s possible that when registering the custom taxonomy or defining the API endpoint, that hook wasn’t applied or the wrong namespace was used. One approach would be to try using register_rest_field() or the rest_prepare_<taxonomy> filter. For example, rest_prepare_grammar_terms can be used to modify the API response of your … Read more

Your site doesn’t include support for the “*” block. You can leave it as-is or remove it

You’re getting that notice because your JavaScript code resulted in the following error: ReferenceError: Cannot access ‘EditComponent’ before initialization This means you need to register your block after the constants EditComponent and SaveComponent are defined. // Define the constants first. const EditComponent = …; const SaveComponent = …; // Then register your block. registerBlockType(‘eternaltwentyfifteen/prevnext’, { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)