WordPress.org

Forums

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

  1. new_B
    Member
    Posted 2 years ago #

    Hi,

    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.

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. new_B
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 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

Tags

No tags yet.