[resolved] get_post_custom not working (2 posts)

  1. benthv
    Posted 3 years ago #

    Hey, I have a question. I'm experimenting with my wordpress theme, and in my single template file I am using get_post_custom() to get some values from checkboxes in a custom meta box I made. Now, when I click update on the admin page, and refresh the post on the front end, the custom values show up fine. But If I wait a minute, and refresh the front end again, the custom values disappear. I have to update them again on the admin screen for them to work again. What could be going on here?

  2. benthv
    Posted 3 years ago #

    NEVERMIND I found the problem. The data was being overwritten during autosave. Funny how I can be stuck for 1-2 hours, then post a question, then find the answer like 2 minutes after I posted the question. All I gotta do is not save stuff when doing auto save.

    Here is a link in case anyone else has a similar problem and finds this.


Topic Closed

This topic has been closed to new replies.

About this Topic