I’m getting this ‘inserting p tags’ problem since upgrading to 1.6.6 and it’s jolly annoying. Any known fix for it yet?
There is a fix for all these ‘p’ tag problems. For custom field extensions, it’s generally in the publish_form_field_unique function.
Below
$r .= "\n</a>" ";
You need to add
$r .= $DSP->input_hidden('field_ft_'.$row['field_id'],$row['field_fmt']);
If your field is already created, you should add this line, then you may have to go in and change your field format to something else (eg XHTML), then check the box to change all existing fields (that should get rid of any NULLs). Then go back into the custom field screen and change back to “none” and/or reselect your custom field type.
There’s also an article about this now at devot:ee: Fix-It-Yourself Extensions, or The Field Formatting Fiasco.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.