Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Piklist in Pages #2524
    Gary
    Member

    Thank you for your help.

    I started re-editing the entrie tutorial and what you have written, managed to better understand the whole.

    <?php
    echo get_post_meta($post->ID, 'demo_text', true);
    echo get_post_meta($post->ID, 'demo_select', true);
    echo get_post_meta($post->ID, 'demo_colorpicker', true);
    ?>

    I remembered that I put into this code, but it can not be accidentally. Now it’s work!

    Thank you so much!!

    in reply to: Piklist in Pages #2519
    Gary
    Member

    Hi Steve!

    Please help me.

    I removed the default editor and created my metabox (The demo metabox, what you showed). Now I want to add the editor field, but I can’t find where to insert it. I apologise for my clumsy, but I really don’t see, where to put this into:

    <?php
      piklist('field', array(
        'type' => 'editor'
        ,'scope' => 'post'
        ,'field' => 'field_name'
        ,'label' => __('Example Field')
        ,'description' => __('This is a description of the field.')
        ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
        ,'options' => array (
          'wpautop' => true
          ,'media_buttons' => true
          ,'tabindex' => ''
          ,'editor_css' => ''
          ,'editor_class' => ''
          ,'teeny' => false
          ,'dfw' => false
          ,'tinymce' => true
          ,'quicktags' => true
        )
      ))?>

    Thank you for your help!

    Best Regards,
    Gary

Viewing 2 posts - 1 through 2 (of 2 total)