Custom field values lost after validation fails

This topic contains 2 reply and 2 voices, and was last updated by gribbler 10 years, 4 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
December 24, 2013 at 4:49 am 13919
gribbler I added a custom field using the 'song_artist' using: http://tareq.wedevs.com/2012/04/how-to-extend-wp-user-frontend/ I also added the validation and made a change to the add-post.php file to display the errors. Now when I post and the validation fails, the message appears correctly, but my 'song_artist' field is cleared out.
December 24, 2013 at 11:54 am 13922
Tareq Hasan Tareq Hasan

Can you share the codes?

December 24, 2013 at 9:37 pm 13932
gribbler gribbler

Pastebin Code

I added the code to functions.php and uncommented from add-post.php

Viewing 2 Posts - 1 through 2 (of 2 total)