I have a little bug on my WordPress…
When I added a custom field, I have no ajax, I need to saved the draft or publish to see the update.
And after I saved my post, the custom field display twice.
name : Steffi
name : Steffi
Help, please ! Thanks
Update :
Console with Firebug
_ajax_nonce 0
_ajax_nonce-add-meta 53208ba18d
action add-meta
metakeyinput
metakeyselect titre
metavalue e
post_id 1151
Hey guys, I found THE solution.
Problems :
Custom field display twice.
No Ajax/jQuery visual feedback.
If you’ve been working on the file
function.php
, make sure you remove extra line breaks.Particularly at the top and
the bottom of your file
…If you have some line breaks, your xml got an error :
XML or text declaration not at start of entity
Try this:
Add this to your config.php file:
define( ‘CONCATENATE_SCRIPTS’, false );
above the line /* That’s all, stop editing! Happy blogging. */
Found here.
“Particularly at the top and the bottom of your file… If you have some line breaks, your xml got an error : XML or text declaration not at start of entity”
In addition, you should remove intermediate occurrences of php’s closing tag ?>.
For example: