Forums

Deleting a Custom Field Key from Dropdown List (2 posts)

  1. btlewand
    Member
    Posted 1 year ago #

    I recently added a new custom field to the write post page. After testing what I wanted to do, I determined I would not need that custom field. There are no records attached to this field and I would like to delete it so it doesn't show up in the dropdown list. However, unlike posts, categories, tags and media I couldn't find a way to manage this list so I could delete that key. Would seem there would be a way to delete the key through the back end of WP but I would prefer to delete the key the easiest way without messing something up.

  2. MichaelH
    moderator
    Posted 1 year ago #

    I wrote a new post, added a new custom field, deleted the post, and now the custom field is not there in the dropdown.

    Consider using phpMyAdmin and look at wp_postmeta for that meta_key equal to your custom field key. If you see the post_id is for a non-existent post in wp_posts, you could delete it there if necessary, without harming things. To be safe, backup your database before attempting.

Topic Closed

This topic has been closed to new replies.

About this Topic