WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
disappearing p tags (9 posts)

  1. 3treemen
    Member
    Posted 2 years ago #

    I've created a cct with an second wysiwyg field (the first is default). And in this second field, my p tags (or all my white lines) disappear.
    The first one keeps them, and in a default page the p tags are also kept.

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

  2. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    When reporting issues/behavior, you must include your details: versions of WP and of the CCTM, otherwise I have no idea how to comment on this. WYSIWYG fields in particular had to be completely rewritten for WP 3.3: WP's implementation of TinyMCE is particularly problematic.

    If the behavior is verifiable, please file a bug in the bug tracker: http://code.google.com/p/wordpress-custom-content-type-manager/issues/list

  3. 3treemen
    Member
    Posted 2 years ago #

    Sorry, my wrong:

    WP 3.3.1, CCTM 0.9.5.5-pl, I have tested several scenarios in this installation as described in my former message. I will file a bug then.

  4. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks. The bug tracker keeps me sane.

  5. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    For the record, Bug info is here: http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=292

    Basically the question is whether or not you want the CCTM to forcefully REGENERATE the p tags that WP strips by default. The wpautop() function could be added to all WYSIWYG fields so that their output is processed before it shows up in your templates... not sure if that's the best solution or if it's better to let users do that on their own.

  6. 3treemen
    Member
    Posted 2 years ago #

    Thank you for clarifying. I'm quite new to WordPress, though not new to webdevelopment.
    From a user / integrator perspective: implementing a WYSIWYG field should always show the same behaviour. Creating a paragraph in the WYSIWYG editor should create a paragraph.

    My advice would be to not forcefully regenerate, but to add a line of documentation to the sample template, or create a setting which can be toggled.

  7. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    The major problem is that WP devs do not have modular code, especially here with the WYSIWYG fields. It seems through and through that the devs never really expected the WYSIWYG editor to appear anywhere else but in the main content block. Cracks in this started to appear in 3.3 with the rewrite of the editor stuff, but it's still hardly a poster-boy for modularity.

    It does make sense to have repeatable behavior between instances. I could add a global setting to CCTM to dictate this.

  8. zone19
    Member
    Posted 1 year ago #

    Guys, guys... there's a simple fix, no need for bug tracking etc...

    just apply filters in the template when you print the_content
    <?php print apply_filters('the_content',get_custom_field('clientCustomWysiwygEditor')); ?>

    Why this wasn't this added to the sample templates in CCTM ages ago is the real question...

    We sourced the technique here:
    http://wordpress.org/support/topic/plugin-types-custom-fields-and-custom-post-types-management-wysiwyg-auto-p

    Your welcome ;)

  9. zone19
    Member
    Posted 1 year ago #

    Guys, guys... there's a simple fix, no need for bug tracking, modular core, global settings etc...

    just apply filters in the template when you print the_content
    <?php print apply_filters('the_content',get_custom_field('clientCustomWysiwygEditor')); ?>

    The real question is why this wasn't this added to the sample templates in CCTM ages ago?

    BTW we sourced the technique here:
    http://wordpress.org/support/topic/plugin-types-custom-fields-and-custom-post-types-management-wysiwyg-auto-p

    You're welcome ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic