Creating a template for a custom post type that lists scholarly publications. Two sections are listed: “published” and “accepted”. Each publication has a key (publication_status) with values of either “accepted” or “published”.
Using an if statement, I’d like to put the ones marked “published” under the published sub-heading and the ones marked “accepted” under the accepted sub-heading. I’m new to PHP in this area and if you have a quick sample of code I could follow, that’d be great. Also, if you have particular resource sites on if statements that you go to often.
Thanks for any AND all assistance!
- The topic ‘An If statement for a specific value’ is closed to new replies.