ACF custom fields won't update. What is the reason? - wordpress

ACF custom fields of a page won't update. When I update the fields a new row get created in the database. ACF won't update the rows where the field exists.

I was also experiencing this on a WP Engine hosted site.
Wordpress 5.7.1
Advanced Custom Fields PRO 5.9.5
I found it to be related to a custom plugin that was using the save_post hook. Try disabling other plugins to isolate which is preventing the changes from being saved.

Related

Gatsby: How do you get ACF (Advanced Custom Fields) to work with "gatsby-source-wordpress" plugin?

I tried following along to this tutorial but it is using a much older version of the API than the current version so it didn't work:
https://www.youtube.com/watch?v=8PAV_9JKW48
Ok, so apparently you need the WPGraphQL for Advanced Custom Fields plugin for it to work.
Download the latest version as a zip from the GitHub releases page, then install it into your WordPress instance by uploading the zip folder (Plugins > add new > Upload Plugin).
Make sure that the "show in GraphQL" checkbox is checked on any advanced custom fields that you make or they won't appear in the GraphQL output.
These are all the WordPress plugins that you need to make everything run smoothly:
Advanced Custom Fields
WP Gatsby
WP GraphiQL
WP GraphQL
WPGraphQL for Advanced Custom Fields
Restart Gatsby once everything is installed.

WordPress ACF Pro User Meta on multisite

I am using ACF Pro to create extra user meta when user register.
I have tried the ACF for user registration on a single site. It works great. But the same fields group won’t work on multisite.
So I check the codes in includes/forms/form-user.php. It only do_action to ‘register_form’. This action is called in wp-login.php, and it is only used for single site user registration. On multisite, WP uses wp-signup.php for user registration. I believe the action “signup_extra_fields” in wp-signup.php can be used to add extra user meta fields.
How can I tell ACF to render extra user meta for the action “signup_extra_fields”.
My understanding of ACF and Multisite is that the ACF plugin has to be activated and the ACF group has to be built in each site of the multi.

Adding a product programatically to wordpress woocommerce website

I'm quite new in wordpress and woocommerce plugin and I would like to create an app that would add products programatically to a website using this plugin.
I thought about writing directly into the database in the wp_posts and wp_postmeta tables. However, I've read about some php woocommerce functions, but I know nothing about this and where to write the php code.
Is the solution I provided is clean enough?
Otherwise how could I use the php functions provided by woocommerce?
Thanks a lot!

How to merge woocommerce older version to newer one?

I have woocommerce plugin installed in my ecommerce website. I have made some custom changes in some of file of woocommerce plugin. Now i want to update my woocommerce plugin. If i do by clicking on button update now then i will lose my custom changes which i made. I want to update woocommerce plugin without loosing my custom changes. So what is the best to merge all the changes to newer version and to update woocommerce plugin . is there any way to update woocommerce plugin manually so custom changes still remain there.
As you know its a bad idea having to edit plugin files because of updates.. if the plugin in question uses hooks you can write your own plugin that has your own custom code for that plugin. Here a post that might help you wrap your head around it. https://iandunn.name/2014/01/10/the-right-way-to-customize-a-wordpress-plugin/

MainWP Plugin doesn't save advanced custom fields values

Has anyone used the MainWP Plugin for managing multiple WordPress sites?
I have recently been using it and on each site where I am using Advanced custom fields plugin for creating custom fields in my posts. But when I created the bulkpost using the MaiWP dashboard, the custom fields are not being saved when publishing new post. Has anyone ever encountered this problem and maybe resolved it?
Any help would be much appreciated.

Resources