Events Manager Conditional Tags
-
Hi all,
I am trying to modify the Events Manager booking form (found in templates/forms/bookingform/booking-fields.php) to only show the ‘Comments’ field if the event is of a specified category.
I have tried using the wordpress condition tags like so with no luck…
<?php if (is_category( '7' )){ ?> <p> <label for='booking_comment'><?php _e('Comments', 'dbem') ?></label> <textarea name='booking_comment' rows="2" cols="20"><?php echo !empty($_REQUEST['booking_comment']) ? esc_attr($_REQUEST['booking_comment']):'' ?></textarea> </p> <?php } ?>
Is there a conditional tag alternative for the Events Manager plugin? I am not having any luck with adding the events manager suggested conditional placeholders (https://wp-events-plugin.com/documentation/conditional-placeholders/) into my booking-fields.php file.
Any point in the right direction will save me a lot of time.
Thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Events Manager Conditional Tags’ is closed to new replies.