About public event form and categories select
-
Hello,
I’m playing around with dedicated public event forms. Really easy !!!
So for this I customise the templates in my theme.Just a trick for others that can help a lot :
As I want to have specific forms, I use this trick to deploy differents templates.For example, I create in <mytheme> and plugins subdir, the following file:
event-editor.php.It contains (pseudo code):
<?php
if (mycriteria === ‘criteria1’) {
get_template_part(‘mycriteria’,’event-editor’);
} else {
get_template_part(‘othercriteria’,’event-editor’);
}
?>And in my thep directory I created (from original event-editor.php) 2 files called mycriteria-event-editor.php and othercriteria-event-editor.php. Like this I can use many event templates forms.
Here’s for the trick but my problem concerns category selectboxes. I want, for one of my templates, list only all sub categories of a specific category. How can I do this in my temptates ?
Thanks for your help!
Christian
- The topic ‘About public event form and categories select’ is closed to new replies.