1

I want to set up a custom field in the admin section of WordPress so that a client can go in and edit the content of the custom field without having to hard-code things with HTML.

I've looked at this post, but I'm not sure if this is really applicable to my case.

Does anyone know a quick/easy way to do this?

For further clarifcation, I bring in custom fields to my page like this:

<div id="greybackground"> <div id="greycontainer">
    <?php echo get_post_meta($post->ID, 'greycallout',true) ?></div></div>
Community
  • 1
  • 1
Mixmastermichael
  • 143
  • 3
  • 14

3 Answers3

7
$settings = array( 'media_buttons' => false,'quicktags' => false );
$content = 'Optional Message For Your Friend here... ';                     
$editor_id = 'postcueeditor';
wp_editor( $content, $editor_id,$settings );

paste this code where you want editor to appear. $_REQUEST['postcueeditor']; will contain data posted by the editor.

Prince Singh
  • 5,023
  • 5
  • 28
  • 32
1

fyi check this addon which will allow you to add taxonomies to custom fields. the addon will allow you to save custom field taxonomy back to post terms. since addon doesnt currently support adding new terms, i used selectize.js (similar to chosen and select2, but without the code bloat). selectize.js has autocomplete and the ability to add new options on the fly. now you can manage taxonomies from advanced custom fields.

Good Luck

gwillie
  • 1,893
  • 1
  • 12
  • 14
0

I use the Custom Content Type Manager plugin on nearly all my WordPress projects (http://wordpress.org/plugins/custom-content-type-manager/) and it allows you to create custom fields with a WYSIWYG editor.

Chris Herbert
  • 6,145
  • 3
  • 19
  • 31
  • hmm thanks but I already have the custom fields created the old fashioned way... what I want is for an editor to appear instead of the text area in wordpress to edit the fields. Make sense? – Mixmastermichael Aug 21 '13 at 21:41
  • I figured it out, there's a plugin "advanced custom fields" that is pretty great that does this. You have to know what you're doing to set up the custom fields so that content appears on your page (text, image), but it does exactly what I need and an "editor" for clients – Mixmastermichael Aug 21 '13 at 22:34