Toolset Types
[resolved] WYSIWYG Editor Field Not Working (3 posts)

  1. Trishah
    Posted 3 years ago #

    I'm having an issue with getting the text I put into the WYSIWYG editor field to be displayed with formatting. The only way I can get line breaks is to use HTML mode and add
    to each line and then NEVER use the Visual editor or it strips all the breaks.

    I followed the instructions on this support thread but it didn't work: http://wordpress.org/support/topic/plugin-types-custom-fields-and-custom-post-types-management-wysiwyg-auto-p?replies=6

    Any suggestions?

    Screen Shots of WYSIWYG and Front End results


  2. Srdjan
    Posted 3 years ago #

    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.

  3. Trishah
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Toolset Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic