WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
Any fix to Add New bug? (2 posts)

  1. chavo
    Member
    Posted 2 years ago #

    Hi. Does anyone find a fix to the issue mention in this post?

    http://wordpress.org/support/topic/plugin-custom-field-template-repeating-custom-fields

    There is one more major caveat to this repeating technique. You can't use tinymce or html textarea content types.

    When you push the "Add New" on the fieldset all the code is duplicated. You do get a new field but TinyMCE and the HTML editor are still tied to the original content area.

    So when you use any javascript, it will affect the original textarea not the newly created one.

    Thanks in advance and sorry for my english.

  2. chavo
    Member
    Posted 2 years ago #

    Looking at the source code, I figured out that when duplicate (Add new) fieldset the $rand value for the switch button remains the same value. I guess that this is the reason why switching affects original fieldset only. Unfortunately I'm not a code master to find a solution :(.

    Any ideas?

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic