WordPress: custom field display twice

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.

Read More

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

Related posts

Leave a Reply

3 comments

  1. 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

  2. “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:

        <?php
    
      ...code...
    
        ?> 
    
    
     ...Some HTML Code...    
    
    <?php
    
    ...code...