Ahmad Al Hariri
Forum Replies Created
-
well this works very well, I have just updated the $post_id = false; and works fine after returning the wp_update_post( $my_post );
it only updates the current post and not other Post_id as you told.This is such great tip from you, I hadn’t noticed it before.
Thanks for the reply and I wish you continued success.
Ahmad!- This reply was modified 2 years, 11 months ago by Ahmad Al Hariri.
well thank you for your answer,
I have already double checked My website, and I have found this code which causing the Problem, which is natives ACF Code.// Save ACF custom field to date-time post function my_acf_save_post( $post_id ) { $acfDate = get_field('studyshoot_time', $post_id); //Test if you receive the data field correctly: //echo $acfDate; //exit (-1); $my_post = array(); $my_post['ID'] = $post_id; $my_post['post_date'] = $acfDate; wp_update_post( $my_post ); } add_action('acf/save_post', 'my_acf_save_post', 20);
can you suggest some changes?
I should say, you have a great Plugin. ??. It is Greatfunction studyshoot_grants_post_type() { $args = array( 'labels'=> array( 'name'=>'Grants', 'singular_name'=> 'Grant', ), 'hierarchical'=> false, 'show_in_rest' => true, 'public'=> true, 'has_archive'=> true, 'menu_icon'=>'dashicons-welcome-learn-more', 'supports'=> array( 'title', 'author', 'thumbnail', 'editor' ), 'slug' => '/grants', 'rewrite' => true, 'capability_type' => 'post', ); register_post_type('grants', $args); } add_action('init', 'studyshoot_grants_post_type');
Are you using Elementor Pro with Dynamic Functions ?
Have you recently edited your Custom Posts or taxonomy terms,\ This could be sometimes becasue of Editing the Post Terms when you use Elementor Pro Post or Page templates..I am using the Custom post type using the WordPress register_post_type Functions;
I got this Error while updating a new Post using the a None Gutenberg Editor
/plugins/seo-by-rank-math/includes/replace-variables/class-base.phpalso I got the Update Failed – Jason Error – while using the Gutenberg Editor …
The Problem is, it is happened while just updating old Posts and not create new postsThanks You.
I have done this already and I have found the Problem which was with ACF + Custom post type..
I tried to Enable the Gutenberg Editor on the Custom post type ‘show_in_rest’ => true, and that works fine, returning to the Classic Editor which used by ACF Plugin is getting me back through the same Problem …
ThanksForum: Fixing WordPress
In reply to: TypeError: Object(…) is not a functionI have found The solution, If you use an External CDN or any Other Cash Plugin, Please just make sure to rebuild the Cash via Cleaning Cash also do not forget to clear your browser Cash.
My problem was based of the Cash system both Hosting Cash System also the Cloudflare …I wish this will help anyone who has the same Problem
- This reply was modified 4 years, 6 months ago by Ahmad Al Hariri.
I have the Same Problem with the Elementor Version 2.8.5 – 2020-01-27
it has totally broken my website. I am using Elementor Pro also .
I had to reinstall the version before to reuse my website again ….