I'm working on setting up a new form that uses the Post fields to allow people to submit draft posts to a site. I love the idea of being able to create the post template using merge tags, but have one question:
Is there any way to set up any kind of conditionals within that template?
For instance, I am collecting a URL and a featured image in the form, but neither of those fields are required. If the user does not include those items, is there any way to leave them out of the Post Template? I'm not sure I can use them if there's no way to set up conditions for that post template. Otherwise, I'll end up with a lot of posts that include things like <img src="" alt=""/>
or <a href="">Foo</a>
, where the HTML values are blank because the information wasn't submitted with the form.
It would be nice if there was a way to say something like:
If URL and image are both filled in, use post template a
If URL is not blank, use post template b
If image is not blank, use post template c
If image and URL are blank, use post template d
Thanks.