WordPress.org

Support

Support » Plugins and Hacks » Custom Field Template » [Plugin: Custom Field Template] CFT deleting content when loading

[Plugin: Custom Field Template] CFT deleting content when loading

  • Hello,
    I´m using CFT for years on any WP-site and mulitsites – it´s one of the most important plugins I´m using.
    But now I suddenly have a big problem:
    When loading a CFT template on the edit-page, the content-box is disappearing. After saving the page, the content-box is back – but the content is deleted.

    Could anybody help?
    Thanx – Bernhard

    http://wordpress.org/extend/plugins/custom-field-template/

Viewing 11 replies - 1 through 11 (of 11 total)
  • I´ve just tested the plugin with WP 3.3.1:
    The problem started with plugin version 1.9.7.

    So I downgraded for a while to 1.9.6

    Anybody has a solution?

    try using CFT “save” first prior to saving or updating the page

    This bug still exists in 1.9.9. When you change the CFT template to add/update data in different fields the content editor completely disappears.

    I can confirm this issue/bug on 1.9.8 and 1.9.9
    I had to downgrade to 1.9.6 to keep everything working

    i can also confirm, but it seems to only happen on custom post types for me… downgrading to 1.9.6 has fixed the issue

    Confirming this. WP3.3.1 and downgraded also to 1.9.6. But still a bug in newer versions.

    Plugin Author Hiroaki Miyashita

    @hiroaki-miyashita

    I can not confirm it so please send me the option file which is exported by the custom field template plugin.
    To: webmaster%%at%%wpgogo.com

    It’s caused by loading <style type="text/css">#wp-content-wrap { display:none; }</style> with template.
    This cause disappearing of content box.
    There is wp_editor(…) also loading, i don’t know what for. May be Hiroaki will explain.

    This code locates in custom-field-template.php (Version: 2.0.2) lines 2620-2625.

    if (substr($wp_version, 0, 3) >= '3.3' && !post_type_supports($post->post_type, 'editor') && $post->post_type != 'post' && $post->post_type != 'page') :
            wp_editor('', 'content', array('dfw' => true, 'tabindex' => 1));
            $out = '<style type="text/css">#wp-content-wrap { display:none; }</style>';
          else :
            $out = '';
          endif;

    Delete this code and content will not disappear next time you load template.

    Hi –
    I am experiencing similar problems.
    Each time I enter content in the field (on a page) upon saving it, it disappears.
    Strangely enough, only one of them presents this problem. One of the Template contents does display (after saving) but other does not.
    Have tried most of the fixes suggested in the threads on this issue with no success.
    Am using Version 1.14.2 and WP 3.4.1

    Anyone have any other ideas?

    (I have emailed the to option file to webmaster%%at%%wpgogo.com)

    Thanks!

    to carlymyman:

    Am using Version 1.14.2

    Current version of Custom Field Template is 2.0.4

    You need to update your version.

    Sorry, I made a mistake – I am using 2.0.4

    Still would love to hear if there are any solutions that might help.

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Custom Field Template] CFT deleting content when loading’ is closed to new replies.
Skip to toolbar