ACF Fields missing after migrate but website works fine - wordpress

I have recently migrated my DB to a staging environment using string find and replace on the DB to rename the domain. This has made the ACF fields in the CMS to go missing.
That page should have several fields available. And while the fields are showing in the pages that ACF group is assigned to I can't edit or see them here any more. I can't even create a New ACF group because I can't see the Add Fields box.
The website works fine, the only issue is the fields cannot be edited anymore.
Any ideas?

Solution:
Go to your DB, open table usermeta, find your user and delete the field acf_user_settings

Related

New/edited fields not showing up after editing ACF field group

I am managing an existing site, with working ACF - there are several field groups set up, one of which is for Team Members- We want to add an additional field to the custom fields for Team Members for an alternate image.
I have set the new image field up - as shown in this screenshot:
But when I attempt to add/edit a new team member, the new fields do not appear in the editor - as shown in this screenshot:
Does anyone have any idea why this could be happening? I have disabled other plugins and reactivated them, I have updated to the latest ACF also, nothing seems to make the new fields appear in the editors.
ACF settings can actually be overwritten by code added to the functions.php file using a combination of built in filters for ACF such as acf_load_listing_type_source and acf_add_local_field_group.
Anyone running into this issue should confirm that this is not the case. It happened to me as I am editing a client's website and I did not actually create the theme, so was unaware of the code overriding the ACF settings.

WP Advanced Custom Fields data after import

I imported Custom Fields into my WordPress site from my staging server. Certain pages are no longer working.
I've tracked this down to a data issue. I went into the database and removed all entries from the wp_postmeta table that I am referencing on my page that is failing. I then went back into a post that was not working and did an update. That post now works.
This isn't a realistic approach since there are hundreds of posts that I would have to manually update. Any ideas on what I can do?
I figured out that each revision is stored in the database.
The original developer of the site i'm working on was displaying fields incorrectly.
If a field was called list_items, they were saying post.list_items instead of post.get_field('list_items'). Since there were multiple revisions in the database the DOM was displaying an array.

Wordpress custom fields not saved in database

I've been running a WordPress site for over a year now and never had a problem with it until yesterday. I'm using a custom field to store the url to a preview image for every post. I simply add it using the standard Custom Fields form in the Edit Post screen. Before when I'd save the post as a draft or if I immediately published it the custom field would be saved. But now all of a sudden no matter how I save the post (save as draft, publish or auto-save) the custom field isn't being stored in the database. I did confirm this by checking the wp_postmeta table.
I already reinstalled Wordpress, but it doesn't change a thing. I also went through other similar posts about this subject, but none of the solutions work.
Any ideas?
So after digging deeper, I figured out the custom field was dependent on another field. Still not sure why it wouldn't store the custom field in the database even though the other field wasn't filled out first. But it works anyway when I do it that way. WordPress works in mysterious ways sometimes.

Wordpress - How to create a fav posts feature

I want my users to be able to mark posts as favorite. I tried the wp-favorite-posts plugin, but it doesn't work. I mark posts as favorites and after refreshing the page it's all gone. Furthermore, if I put {{wp-favorite-posts}} to a page, it just shows the text.
So I want to create my own solution, but don't really know how. I have never edited the WP database, but I have plenty of PHP mySQL experience.
Can anyone please point me in the right direction ?
You can use post_meta. You can store the "favourite" aspect as a custom field attached to each post. You don't need to manually edit the database (i.e. via mySQL).
When you want to show the favourited posts, run a custom query that only shows posts with the specific custom field that you've specified.

how to add some extra field in registration form in wordpress?

i want to add some extra field in my registration form in wordpress site how to add it.and made entry in database.
hope some one help me.thanks
I have used the plugin 'Cimy User extra fields' on several clients' sites and found that it does the job very well.
Last installed on a site within the last couple of months, so Wordpress 3 support is fine.

Resources