I have user registration setup with GF & Members. Together with a front-end form. The front end form saves several choices to wp_usermeta - no problem there.
But in the dashboard, I also have form created to allow editing in there as well (for admins).
One of the (new) choices is if the user wants a quarterly newsletter posted or emailed.
I have this as a radio button - with the two choices - emailed or posted.
When choosing in the dashboard, it saves to the DB. But on page load (or reload) it’s not showing the existing choice.
I need help with a php if statement, to add the
echo "checked" to the current choice.
Here’s the form I have in my theme functions.php
I have a
update_user_meta later in the file, so changing the selection reflects in the database.