Fields
141Fields is a WordPress plugin that let you manage custom fields in your write/edit page, giving you a more user friendly interface than the default one. Fields supports post types that have a UI.

With Fields, you can create boxes which will appear in your write panels. A box can contain a number of groups which are sets of custom fields that you can define. Boxes are displayed as meta boxes and groups are shown as tabs that can be switched inside boxes. Within a group, fields can be shown as either textfields, textarea, drop boxes, radio groups or check boxes.
Fields does not create custom post types, to do so, use other plugins such as WP Post Type UI.
Download from here
Features
- Tabbed displayed
- Multiple boxes per post type
- Grouped fields
- Support Textfields, Textarea, Drop boxes (select), Radio groups, Check boxes
- Cross-post shortcodes
Installation
You can upload it directly into your wordpress blog:
- Download Fields from here
- Upload the whole 'fields' folder into '/wp-content/plugins/'
- Activate the plugins from the plugin list in your WordPress plugins page
Or use the built-in WordPress plugin browser
- Open your WordPress plugins page
- Select 'Add new'
- Search for 'Fields' and install
- Activate 'Fields'
After installation, you can administer the settings by openning the Fields --> Fields page.
How to use
Browsers compatability
This is embarrassing but Fields has only been tested on Firefox 3 and Safari 5 on Snow Leopard (Mac).
hi Khanh it’s me again
1) relative to put diferent post-types menus in one menu, perhaps a custom menu plugin could help, i don’t remember the name but i tested one once time.
2) i would ask is there a way to put Fields Panel Box in the front post/pages (not in admin page)? Do you have a idea how to do it?
Best regard, pescaditio
M, I’m sorry, field_meta() currently does not work properly on fields with multiple values. Use field_get_meta() instead, it returns an array for those fields:
$genres = field_get_meta('ffgenre',false);
echo implode(',', $genres);
Alex, thanks I’ll try when I’m free :)
Pescadito, for 1, you could try Admin Menu Editor to move the menu items around and hide them as well. For 2, no there is no way to do that for now.
Hi Khanh, thank you again. That works perfectly. Great Plugin btw!
Hi Khanh.
I’m having a problem where the wysiwyg textarea doesn’t save the line breaks.
With the normal textarea, it saves the line breaks and I can get the output on the theme with this:
echo wpautop(field_get_meta('observacoes'));I just don’t know why tinymce is filtering out the line breaks.
I just edited the show_field() function on fs-textarea.php and got it working.
I’m just checking if it is the wysiwyg editor and then parsing the $value through wpautop.
Worked like a charm!
Take a look if this is OK and please update your plugin.
function show_field($post, $box, $field)
{
if ($field['note'])
$note = '' . $field['note'] . '';
$rows = $field['rows'];
$value = maybe_unserialize($field['meta_value']);
if (is_array($value))
$value = $value['value'];
//checking if it uses the wysiwyg and add wpautop
if ($field['visual'] != '') {
$visual = ' fs-visual';
$value = wpautop($value);
}
if ($field['group']['layout'] == LABEL_LEFT)
echo "{$field['title']}";
echo "";
if ($field['group']['layout'] == LABEL_TOP)
echo "{$field['title']}";
echo "{$value}" .
'' . $note . ''.
'';
}
PS: I also removed a $visual variable that was lost (I think) on the textarea tag.
Hmmm… The html was removed from the comment.
Take a look here: http://gist.github.com/621205
hi Khanh
i would share with you a little modification solution used in the Custom Field Template Plugin to use shortcuts, see:
http://wordpress.org/support/topic/plugin-custom-field-template-enabling-shortcodes-anywhere
do you think that enable shortcodes in Field plugin could help to put
Fields Panel Box in a front post/page?
best regards, pescadito
Ok, thanks.
And please, don’t let this amazing plugin die without updates.
I think you could put a support forum here on your blog, so people could help each other and form a small community around your plugin.
This would also benefit the plugin development giving it some exposure.
Thanks Victor, don’t worry, it won’t die, I still have many things planned for it.
Thanks Pescadito, I’ll have a look into it
Hi Khanh. After the update of your plugin from 0.6 to 0.7 I have a problem with this on my front page.
field_get_meta(‘logo’, ”); returns “Array” instead of the desired content…. Can you help me out?
See my code below..
< ?php if ($postnum
< ?php if ($postnum
… I can’t post the code …
I basically make a query_post for four posts,
and get the field_meta for the post.
Which returns Array.
Alex, try field_get_meta(‘logo’);
Sadly I’ve already tried that… And it doesn’t work…
Ahh sorry! Yes now it works!! Thank you.. I just had to remove the , ”) ….
Hi Khan.
I’m just about to upgrade to 0.4.3. I just want to make sure that you included my patch for the show_field function.
Best regards, Victor
Hi,
I had same problem with TinyMCE not showing line breaks and paragraphs… And the Victor’s code solved it (thanks)
However, now I have the same problem, but on the frontend. When I do get_post_meta of field_meta it doesn’t show any breaks or paragraphs…
Maybe some changes on save_field function ?
Thanks,
Alen
Thanks for the plugin, very useful.
I’m not to great with PHP but I’m putting together a custom post template. I’d like to show the following on the page if possible using PHP, is someone able to point me in the right direction?
What I’d like to show:
field = facilities
contains multiple values
would like to contain all elements within
would like each item to be enclosed in
i’d ideally like the class of the to be numbered so I can style each item individually
I believe the majority of this is possible, I’m just not sure what PHP i’d need to place within the template file to show it?
sorry last post removed some of my tags and no edit button…
would like to contain all elements within an unordered list
would like each item to be enclosed in a list item
i’d ideally like the class of each list item to be numbered or named so I can style each item individually
Hi guys, just let you guys know that I have not abandoned Fields, it’s just that I don’t have enough free time to take care of my plugins at the moment. I’ll be back as soon as I can.
Hm i dont get how to get the fields data with fs_get_meta. Say i want a field with the key ‘title’ from the group ‘english’ in a box products. What values to input?
I was just wondering if you could add a image upload option to the field creator.
Besides that nice and simple.
would be nice to drag and drop for ordering fields
Where does this plugin store its custom fields? They aren’t being added to the postmeta table, and I don’t see any custom table in the database that the plugin uses. I even tried to track the records number of my WP database before and after custom field adding, and I noticed that it wasn’t changed.
I like the box concept of this plugin so much, but as far as it doesn’t store its fields in the regular postmeta table, it won’t be translatable by WPML plugin, which make me unable to use it.. (which is so sad, really)
Stupid me! Just found them in the postmeta table, preceded with underscores. Looks like there was something wrong with my eyes! :$
Yeah, I put underscores in front of the fields so they won’t show up on the default custom field editor :-)
Glad to see you here.. looking at the last update date I honestly thought the plugin died.
Great plugin, really. I just miss uploading photo/files custom fields :^)
Khanh,
Where can I insert some custom CSS for the back-end interface? I want the field labels and the fields themselves to be displayed on two different lines (i.e. http://grab.by/anvD instead of http://grab.by/anvE). I wrote the CSS rules, but I cannot find a good place to insert them. I don’t want to edit plugin files since they’ll be overwritten after every update. Any idea? (Maybe it’s a good chance to add it as a feature enhancement?)
Hi Ma’moun,
You can set the group’s layout to one-column.
For the css I think it’s better to put it in another plugin, I’ll note it as a future feature. Thanks for your input!
Oh, I see.. one-column layout is what I needed. Honestly, the interface of this plugin can be greatly improved. It isn’t the most efficient interface at all. As an example, you would go into tens of page refreshing and waiting moments to update all of your groups in order to modify the layout setting. I would recommend taking a look at Advanced Custom Fields plugin for inspiring, since it has one of the most easy-to-use, efficient and intuitive interface from my experience.
Another feature request I would ask for, is to specify the parent post ID of all posts that I want to register my custom fields for.
Thanks Khanh!
While I can get the field values using both the plugin template tag as well as WP’s native postmeta get function (with adding an underscore in front of the key), the plugin shortcodes don’t work for me at all. It simply outputs nothing. Is it a known issue or something with my installation?
Well, taking a look at the code, specifically the file fs-shortcode.php, I see that the function get_field() tries to extract the value searching in the boxes that are registered for chosen post type(s), which ignores the case where you have post-specific registered box(es), like my case.
In other words, here is how you can reproduce the bug:
(1) Create a new box and register it for a specific post using its ID
(2) Create a group with a text custom field inside it
(3) Assign value for the custom field
(4) Try to get the custom field value using the shortcode [field key='XX']
Note that if you edit the box in (1) and make it included for post type(s) instead, you’ll get things working correctly.
Hey Khahn
Great plugin! :)Noticed something strange. On v0.4.3 of the plugin apostrophes seems to break the output on the admin area. The data is saved correctly to the database, but when displaying it again in the admin, it basically cuts off the data being displayed. This often causes broken HTML being echo’d onto the page.
Do you have any suggestions for a fix?
Sorry, I should have mentioned that it happens in the Textfield. I have a group with multiple dynamically addable textfields. I type something like “Hello world, this thing’s really amazing” and the apostrophe in thing’s is where the data being echo’s is where the cut off happens. But like I said, it saves the data fine.
Good web site! I really love how it is simple on my eyes and the data are well written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your RSS feed which must do the trick! Have a nice day! “If you are going to do something wrong at least enjoy it.” by Leo C. Rosten.
Hi Khanh
This is a great plugin, and I am using it successfully on all posts.
A simple question: what is the simplest way of extracting all the data that is input into the forms? I need to create a csv/excel file to upload to Google. I have tried DBAdmin, but it’s really crude and I can’t construct an appropriate select statement.
I honestly don’t know where to start, and any suggestions would be very useful.
Regards
ROB
Hi Rob, thank you for using my plugin
To construct the csv, you need to extract meta data from each post using get_post_custom() then filter them out and take only those with underscore (_) in front of the meta data name.
Hope that’d help
Khanh