Custom Content Type Manager
[resolved] Missing automatic paragraph tags in custom field after upgrades (3 posts)

  1. new_B
    Posted 3 years ago #


    I've been scouring the forums and tried a bunch of things with no luck.

    At least before the upgrades (WordPress core and this plugin), filling out the custom text area field generated <p> tags as appropriate; however, it stopped working completely.

    When going to old custom posts and viewing the HTML view of the add/edit post form, paragraph tags are seen.

    I found a bunch of posts including suggestions to apply filters to the template, which I haven't had luck with.

    The template just calls the_content().

    Any help/suggestions would be greatly appreciated. Thanks.


  2. new_B
    Posted 3 years ago #

    Just an update. The call was actually to get_post_meta() (I had referred to the wrong code). Got it to work by modifying the code in my template to

    apply_filters('the_content', get_post_meta($ID, 'text', true))

    Not sure why the paragraph tags disappeared after the upgrade though. Any ideas?

  3. fireproofsocks
    Plugin Contributor

    Posted 3 years ago #

    Glad you found a solution. The problem is probably with the "do_shortcode" function. I've added this as an output filter inside the CCTM, but I've had a lot of problems with it. You can use the built-in WP function of the same name: it will parse out any shortcodes and it also should convert newlines into paragraph tags.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Content Type Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.