I have 2 forms. Form A creates a new user with the role of Author and also creates an entry in a CPT called Judges.
Form B creates a new user also with the role of Author and creates an entry in a CPT called Submissions.
So if both forms are submitted we have 2 new users both with the same role of Author, one has created a Judge entry, the other a Submissions entry.
On author.php I need to show the personal info like name, email etc. Now, I also need to display those forms again and query some other CPT info. The problem is, how can I show Author A the judge form and only content related to CPT judges, and Author B the Submissions form and only content related to CPT Submissions.
Ive been trying to use something like this as a start.
<?php if( get_post_type() == 'judges' ) { //start CPT conditional ?>
<?php } elseif ( get_post_type() == 'submissions' ) { ?>
<?php } //end CPT conditional ?>