03/05/2013 at 3:41 am
#252997
Participant
I am trying to create a new data-type by following your example.
Following are two lines of code taken from line 1815 of class.form.php. They pretty much sum up my problem.
I had it working in a previous version when you used this:
echo ‘<p class=”add”><a id=”add_phone_number” class=”button”>Add Phone Number</a></p>’;
but now that you are using data-type I am a bit confused:
echo ‘<p class=”add”><a href=”#” class=”cn-add cn-button button” data-type=”phone” data-container=”phone-numbers”>’ , __( ‘Add Phone Number’, ‘connections’ ) , ‘</a></p>’;