Home Forums Front-end Issues Front End Form to CPT data not saving Reply To: Front End Form to CPT data not saving

  • Hi @heykafei

    Thanks for providing the data, your code looks great and I am surprised that you are having any issues at all.

    Lets do some debugging to find out where the problem is:
    1. your add_new_player function, before anothing else, can you simple print out the $_POST data like so:

    echo '<pre>';
    echo '</pre>';

    Does all the data look correct?

    2. Print out the value of $player_name_title after you have set it’s value. Is that correct?

    Apart from that, I’m not sure what the issue could be…

    The 1 field being saved is a strange issue and may be related to running out of PHP memory during the save? Perhaps you could even check your server logs for any error reports during the save?

    Let me know how you get on.