• Resolved xelmorro

    (@xelmorro)


    Hi guys! Sorry to bother with this, but since I installed the add meta tags plugin, I’m unable to save the meta data in posts and pages.

    So basically I edit a post, add custom description, keywords and title in the metabox, but when I hit “update”, the fields revert to blank…

    any idea what could be going on, or at least where to look in the code to see if I can fix it?

    Regards,
    Xel

    https://ww.wp.xz.cn/plugins/add-meta-tags/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author George Notaras

    (@gnotaras)

    Hi Xel,

    This is strange. Add-Meta-Tags uses the ‘Custom Fields’ feature of wordpress to store this information and the data management takes place using the documented WordPress API. I have no explanation about this.

    What are the WP, Add-Meta-Tags versions?

    Does this happen in all post types?

    Do you use any plugin that modifies the ‘Custom Fields’ functionality of WordPress or the WordPress permissions?

    George

    Plugin Author George Notaras

    (@gnotaras)

    I cannot reproduce the problem. More feedback will be required.

    Plugin Author George Notaras

    (@gnotaras)

    Marked as resolved as I could not reproduce this issue in no way. Feel free to reopen if you have more feedback about it.

    Thread Starter xelmorro

    (@xelmorro)

    Hi George, thanks for your answer. I think I have new feedback, if you think it could narrow down the issue:

    – When I add a description, keywords and title in the metabox when editing any kind of post, the information is saved in the database, and also the meta tags are shown in the page source code. BUT the changes are not reflected in the metabox fields once you click “update”. that is, I see blank fields even if the information is actually saved.

    that means, if I click “update” again, the information will be erased.

    So, the problem is, the system is not able to retrieve the information from the database to show it in the metaboxes….. any idea where to start looking?

    Plugin Author George Notaras

    (@gnotaras)

    I see. I’m reopening the topic for further research about what could be causing the issue.

    Plugin Author George Notaras

    (@gnotaras)

    Does this happen on regular posts? Also do you use a plugin that affects permissions or the custom fields functionality of WP?

    Thread Starter xelmorro

    (@xelmorro)

    Today I upgraded to the latest version of add meta tags, and now it seems to work on regular posts, but not in pages.

    I don’t have permission problems, or any plugin managing that.

    Also, I have little plugins enabled, but one of them is WPML for multi language support. This plugin adds a custom field also in the edit post, but it only says “Multilanguage support: Nothing to configure.”

    I hope it helps..

    Plugin Author George Notaras

    (@gnotaras)

    Could you try adding the following code to the functions.php file of the theme and check if anything is fixed?

    function amt_custom_metabox_supported_post_types() {
        return get_post_types();
    }
    add_filter( 'amt_metabox_post_types', 'amt_custom_metabox_supported_post_types' );
    add_filter( 'amt_supported_post_types', 'amt_custom_metabox_supported_post_types' );

    Is WPML available in the ww.wp.xz.cn plugin repository?

    Plugin Author George Notaras

    (@gnotaras)

    Hi,

    There haven’t been any changes in the recent releases that could justify the fact that it has begun working for posts after updating the plugin. Something else, that is not related to the plugin, is the cause of the issue.

    If you test the above code, please let know if you notice any improvement.

    Thread Starter xelmorro

    (@xelmorro)

    Hi George, let me troubleshoot this better, as I see I couldn’t see the whole picture when I started this thread. As you said, I need to see exactly when and where is not working, so you don’t waste your time in partial-troubleshooting.

    thanks for your time!

    Plugin Author George Notaras

    (@gnotaras)

    Hi xelmorro,

    Detailed feedback is always much appreciated.

    Thanks

    Plugin Author George Notaras

    (@gnotaras)

    Xel, I’d appreciate if you tested the above code and check if anything changes with the metabox. Thanks i advance.

    Plugin Author George Notaras

    (@gnotaras)

    Since I could not reproduce the issue in any way, I’m marking the topic as resolved. Whenever more feedback is available, please feel free to reopen.

    Kind Regards,
    George

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Meta box not saving in posts’ is closed to new replies.