• 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 (http://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)
  • Thread Starter duhig

    (@duhig)

    Update: I have since attempted using in_category( '7' ) but this didn’t work for me either.

    Thanks

    What version of EM are you working with. I would like to customize the booking comment name but I cannot find the file you reference. I am using the FREE EM. Thanks for any help you can provide.

    Thread Starter duhig

    (@duhig)

    Hi RuthNovo,

    I am using the Free version myself. Changing the label for the ‘comments’ field is possible by editing the file found here…

    “wp-content>plugins>events-manager>templates>forms>bookingform>booking-fields.php”

    I have actually approached my problem a little differently since posting, but any light you can shed on my initial issue would be great!!

    I can not find that path. Can you share more information please? How do you navigate to that file? I have successfully managed to display only the events associated with one category. I am very pleased with the way it turned out. Still have some work to do though. Thanks for your help.

    http://www.funatoakrun.com/event/master-suite/. The comment box I would like to customize is on this page. Also, I would like to insert the paragraphs about bringing meals after the booking form but before the comments section. Can I do this?

    Thread Starter duhig

    (@duhig)

    Yes thats the comment box. The file that events manager uses to display this is a template file hosted within the plugins directory. You’re going to need to use an ftp client such as winscp to log on to your server and navigate to the file I listed above.

    Alternatively you may be able to find it by using the wordpress plugin editor and browsing the events manager plugin files.

    Let me know if you need a touch more information than that to help edit.

    On another note I can see that you have used a responsive theme for this site (looks like the standard worspress 2012 theme) which is great! If you’re updating your css remember to check site pages on mobile devices. I just viewed the link you providied from an android phone and it appears some of your text is unaccessible on the left of the screen. You may need to update yourmedia queries.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Events Manager Conditional Tags’ is closed to new replies.