Hi! Is it possible to insert a login form inside a form and set a conditional statement to show a registration form and a login form if user is not logged in? Let say I have a custom post type based form for submitting a directory or a job post. Inside the form are the required input field such as name, address, contact etc. then there will be a user validation if current user is logged in before submitting the posts.
example:
/////////////////////////////////////////////////////////////////////////////////
if user is logged in then show submit button
else if user is not logged in show
//////////////////////////////////////////////////////////////////////////////////////////////
LOG-IN REGISTER
User Name: /////////////////////////// | User Name: /////////////////////
Password: ////////////////////////// | Password: /////////////////////
Forgot your Password [ Sign - in ] | Email: //////////////////////
| [ REGISTER ]
or Log-in with your Facebook |
[ FB-Log-in] |
or Log-in with your Twitter |
[ TWITTER-Log-in] |
////////////////////////////////////////////////////////////////////////////////////////////////
else if user is not logged in and is a first time user then allow user to register then redirect back to the form to finish fill in form to submit content.
First Name: //////////////////////////////////////////
Last Name: //////////////////////////////////////////
Post Title: //////////////////////////////////////////
Post Body: //////////////////////////////////////////
Custom Fields://///////////////////////////////////////
If user is registered and logged in then show [ SUBMIT ] Button to submit post? so its like there is two or three forms here connected in one form?
Is it possible to call a form using the html tags field component and call the log-in form and the registration form then just insert a condition statement to show the submit button if the user is logged in?