Is there a way to get rendered html content of a WP post after updating?
Is there a way to get rendered html content of a WP post after updating?
Custom taxonomy only gets saved in quick edit
I found what was the problem. the code with actions were wrapped bu this following code : global pagenow; if ( $pagenow === “edit.php” && isset( $_GET[‘post_type’] ) ){} When there is an ajax call, $pagenow === admin-ajax.php and $_GET === [ [“_fs_blog_admin”]=> string(4) “true” ] so that could not be fired.
I noticed there was a 302 redirect in my network tab while saving. Save_post was being triggered twice, once from Inside my call, I simply included: $referrer = wp_get_referer(); if (strpos($referrer, ‘http:’) !== false) { error_log(“not the right referrer, aborting”); return; } Issue solved.
Untested, but if I understand you correctly, try something like this: $results = new WP_Query( array ( ‘post_id’ => ‘<id-here>’, ‘post_type’ => ‘acf-field’, //not necessary, but insurance ‘post_excerpt’ => ‘<custom-field-name>’, //not necessary, but insurance ‘meta_query’ => array ( ‘key’ => ‘<custom-field-name>’, ) ) );
Post and Pages section inside WordPress admin are completely blank
Is there a way to get rendered html content of a WP post after updating?
Add Tag to post after publishing
How to create a user ability to save pages with full url?
I found a solution: function myAction() { if(defined(“REST_REQUEST”) && REST_REQUEST) { return; } // Do action stuff } The request to /wp-json/wp/v2/pages/1373 is a request to the API which defines the constant REST_REQUEST and sets it to true. If anyone’s got an idea why an extra API request is sent, please feel free to add … Read more
Bookmarking custom template pages which all have the same page ID