Viewing 2 replies - 1 through 2 (of 2 total)
  • You are having problems just with Types WYSIWYG or with WP editor too?

    Tutorial you linked to is looking right.
    Do some other formatting appear to be wrong or just line breaks?
    I can’t keep formating 100% as I want due to WP editor restrictions.

    Thread Starter trishahdee

    (@trishahdee)

    I went over my code again and checked it against the instructions at http://wordpress.org/support/topic/plugin-types-custom-fields-and-custom-post-types-management-wysiwyg-auto-p?replies=6

    My problem was trying to combine my formatting with all the code into one echo. The line starting with $text = needs to be outside the echo. I was finally able to get it working by using the following template code:

    if ( get_post_meta($post->ID, 'wpcf-lyrics', true) )
          echo "<div id='lyrics'><h3>Lyrics for " . get_the_title() . "</h3><div class='lyrics'>";
     $text = get_post_meta($post->ID, 'wpcf-lyrics', true);
          echo apply_filters('meta_content',$text) . "</div> </div>";

    Thank you for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WYSIWYG Editor Field Not Working’ is closed to new replies.