How to force the event category

[ad_1]

Hi Franky

In the default form.php the code for event_category_ids is :

<?php } 
if (get_option('eme_categories_enabled')) { ?>
<div class="input select">
    <label for="event_category_ids"><?php _e('Select the Event Category','events-made-easy-frontend-submit'); ?> <small><?php _e('required','events-made-easy-frontend-submit'); ?></small></label><br/>

    <?php EMEFS::field('event_category_ids'); ?>

    <?php EMEFS::error('event_category_ids'); ?>

</div>?>

I would like to force the category, for exemple to 4, and do not give the choice on the form. As several user can use EMEF but with different form (monform.php and wishform.php that are on different pages with a shortcode with different parameters). So I think I can not use a filter. Have you a solution for that please ? If I do not put those lines in the form the category 1 is used by default. I would like to force category according the used form.

Have a nice day

Frédéric

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer