Support » Plugin: Custom Content Type Manager » Missing automatic paragraph tags in custom field after upgrades

  • Resolved new_B



    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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?

    Plugin Contributor fireproofsocks


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing automatic paragraph tags in custom field after upgrades’ is closed to new replies.