WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having a heck of a time trying to retrieve the title (or handle?) of my custom post meta fields.

I am using the slmple fields plugin. http://wordpress.org/extend/plugins/simple-fields/ (as I understand it, this just makes use of 'normal' post-meta stuff.

I have tried the simple_fields_get_post_group_values() function provided by plugin, as well as the following code I found in the WP codex, to no avail:

<?php $checkit = get_post_custom( 22 ); 

I have also tried searching the database for the phrases themselves within phpMyAdmin, and they don't appear to be there, which is perplexing.

I'm pretty new to all this stuff, so I am sure I am missing something obvious ;-)

I would be extremely grateful for any advice or help anyone could offer.

I've circled (badly) the info I am trying to query.

enter image description here

share|improve this question
up vote 1 down vote accepted

The values you have circled are not part of the custom fields. They are part of the configuration data of Simple Fields. You can find them in the dadabase in table wp_options in the row with option_name=simple_fields_groups. Field option_value contains a string of serialized data.

You can read the option with WP function get_option(). It is deserialize automatically. Use var_dump() or a plugin like SM Debug Bar to display the content.

share|improve this answer
Hey thanks! I'll check this out later today and select the answer when I get it running – Zach Lysobey Dec 21 '11 at 14:31
Worked like a charm! Weird that I searched the database and didn't find this. I guesse I screwed up somewhere ;-) – Zach Lysobey Dec 21 '11 at 20:23

Simple Fields is a bit complicated as it does not allow to set the name of the custom field variables. It also does not support select lists where value and displayed option differ.

I've moved to plugin Just Custom Fields. It has a very comfortable user interface. The only disadvantage is a missing export/import function. Accessing the custom fields in a template file is the standard WP mechanism.

Other plugins are (untested):

  • Advanced Custom Fields (export/import option available?)
  • Meta Box (configuration is done in a file, thus no export/import option necessary)
  • Magic Fields (does not differ between value and displayed option in select elements)
  • Easy Custom Fields (integrates in functions.php, needs programming knowledge)
  • More Fields (does not differ between value and displayed option in select elements, the optional access restrictions should not be used)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.