Function returns different value when called from ‘save_post’ than when called on page load

Probably revisions. Check $post->post_type.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)