“Update” button missing from block editor
“Update” button missing from block editor
“Update” button missing from block editor
Block validation failed for React Component block that rehydrates after taking effect
Get post meta in function hooked to transition_post_status
Why does my custom slug only show in Gutenberg editor after page refresh?
The “ERR_CONNECTION_RESET” error in WordPress usually occurs when there is a server connection problem during the execution of a POST request, such as when saving a post or adding media. There can be many reasons behind this error, but here are some common solutions that can be tried: Check for Plugin/Theme Conflicts – Start by … Read more
I just wanted to post the code that got this working without issues. I had an extra argument in the function that was never being used ( $post ). function ccc_acf_update_fixture_post_title( $post_id ) { if ( get_post_type( $post_id ) == ‘fixture’ ) { $team = get_field( ‘team’, $post_id ); $venue = get_field( ‘venue’, $post_id ); … Read more
After the advice from every awesome person who helped, I finally got it to work. I just had to define $the_content instead of trying to use the hook get_the_content() alone. Now it’s tagging everything perfectly. Here is the final code for anyone who wants to use it in the future. Or you can just download … Read more
Thanks to mmm’s comment above, it was pointed out that even for CPTs the first parameter’s value needs to be “post”, as clearly stated in the documentation at https://developer.wordpress.org/reference/functions/metadata_exists/. Somewhere along the way I confused myself into thinking that the first parameter’s value needed to be the CPT handle for a custom post type (CPT), … Read more
If you don’t want to use a scheduler (ex: Action Scheduler) or a cron job, and you only want to update once per year, then an option that tracks the next update time is probably the simplest approach (untested): add_action( ‘init’, static function () { $option_name=”cpt_ages_next_update”; $option = absint( get_option( $option_name ) ); if ( … Read more
I found a workaround, in this forum – This did the trick: [https://wordpress.stackexchange.com/questions/225760/update-is-always-true-in-save-post][1] It’s still hit multiple times, but it’s working.