• Resolved morollian

    (@morollian)


    Hello,

    I have several custom fields in diferent post-types, and I would like to filter the fields that are shown in the dropdown list of my backend.

    The idea is making the backend more user-friendly by showing only the custom fields that I need to use in each custom-post-type.

    I found this topic in the forums, but it’s closed without any answer. @diogo15 did U find a solution?

    If anyone have an idea about where to start.. I could use some guidance..

    Thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think the Advanced Custom Fields plugin might do what you want.

    Thread Starter morollian

    (@morollian)

    I’ll definitely try this plugin, but in this case I would really like to solve it using just some code on my functions.php. I need to filter the custom fields of a wordpress project which has been used for several months, so I dont want to make any change on it’s main structure, I guess otherwise I might lose some data…

    Thread Starter morollian

    (@morollian)

    After trying several hacks, I’ve decided that as I haven’t found and elegant one, and a great plugin does the job, I’ll go with the plugin.

    Now I need to find a way to migrate the current data from the wp native custom fields to the new fields I’ll create with the plugin, there are more than 50 posts published…

    Have U ever done that @vtxyzzy? Thanks for suggesting the plugin by the way!

    vtxyzzy

    (@vtxyzzy)

    Sorry, I have no experience with that.

    Thread Starter morollian

    (@morollian)

    It’s done.

    First of all I made a backup of my wp database. Then I installed the plugin and I realized that it uses the same table (wp_postmeta), so for those fields which had the same slug as in the old config, there was no need to export/import, as they where right in its place.

    Thanks a lot for your tips! I’m marking this as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter custom fields list on backend’ is closed to new replies.