We are using ACF on the posts on this page (http://jmishkinlaw.com/lectures/). We deleted one of the fields (Downloads) via the admin console. However, the title of this deleted field (Downloads) is still appearing on the front-end without the content.
How can I delete this field and keep it from appearing on the front-end?
Simply deleting the field from the ACF admin does not delete the meta data from the post. Try recreating the field ( be sure its the same field name) and go into the post and empty the fields value, save the changes, THEN go and delete the ACF field. Now you’ll have an empty meta value in the post and nothing should appear in the posts frontend + no more field.
Another way to do it would be to delete the meta value directly in the wp_postmeta table but I’m assuming you prefer not to tamper with that 🙂
OK, logically this makes sense but unfortunately, recreating the field, deleting the content and then deleting field didn’t work. I did it twice.
I’m looking at the wp_postmeta table and can see traces of the download content, but you’re right, messing this with table does make me nervous somewhat as someone who normally doesn’t dive directly into the tables.
That’s strange since it should work.. is it possible you dont have the right field name?
If you come so far as to find the field value in the wp_postmeta table for the post in question you can easily delete it!
Just click the delete button next to the row which contains the data you dont want and it should be fine. If you’re nervous you can always to a export backup first 🙂
I’m looking at the all the rows in this table and there are probably several dozen rows with the meta_key of “downloads” which is the name of the field I deleted. There were only about 5 posts that used this field. Am I safe in deleting ALL the rows of that meta_key? Or could they possibly be for other content in the site?
I can’t tell if any of them contain the content that was originally associated with the fields when live. Most of them have empty meta_value or have a three digit number in them.
The field used to be a file download link.
I’ve done that. There were probably 50-60 rows named downloads. Then there were probably at least many or more rows called _downloads. That’s a lot of rows for a handful of posts.
Anyways, after doing that, the Downloads field is still visible on our site unfortunately. Any other ideas?
I don’t understand how you can still have the field..
is it the field in admin or the fields value on the front-end you wish to remove? Which is not being deleted?
Are you sure its an ACF field?
You can always go into your theme files and remove the output of the field there.. if it’s in single posts check single.php, if its on regular pages check page.php.
I’m having the same issue. I’ve deleted every record in the database referencing a particular field group, removed the page itself that contained the field group, removed the theme files referencing the field group. And I still have it showing up under “Tools” and I can’t re-import.
I did a database base search for the exact term and got no results. Then did a search through all of the wordpress code and got no results.
Where else could this be?
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.