Home Forums Plugin Support WP User Frontend (Free Version) Custom field values lost after validation fails

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  gribbler 5 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13919

    gribbler
    Member
    Post count: 4

    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.

    #13922

    Tareq Hasan
    Keymaster
    Post count: 2831

    Can you share the codes?

    #13932

    gribbler
    Member
    Post count: 4

    Pastebin Code

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

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Custom field values lost after validation fails’ is closed to new replies.