Support » Fixing WordPress » get_post_custom not working

  • Resolved benthv


    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?

Viewing 1 replies (of 1 total)
  • 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.

    Auto save problem for custom variables

Viewing 1 replies (of 1 total)
  • The topic ‘get_post_custom not working’ is closed to new replies.