Change of initial event status
-
Dear Franky,
In the settings of both the EME- and EMEFS-plugin I made the initial state of all new events “concept”.
The charm of the EMEFS plugin is that our volunteers can make new events with this plugin without logging into the backend of WordPress and EME. So EMEFS is an excellent tool for them because they don’t have to worry about things like templates, (custom) fields, short codes, the correct mail ouput. Thank you for providing this plugin. But …For some reasons I want some events made by EMEFS to be published directly, without going to the backside of WordPress and EME. Therefor I made a form.php, f.i. form_tobepublisheddirecty.php and uploaded that to a directory as described in the readme.txt of EMEFS.
According to the description I thought that the following code should make the new event to be published directly. However, it does not work.
<div class="input"> <label for="event_status"></label><?php _e('State for new event','events-made-easy-frontend-submit'); echo ', maak de status ID <strong>1</strong>. '; ?></label><br/> <?php EMEFS::field('event_status'); ?> <?php EMEFS::error('event_status'); ?> </div>
The status of the new event stays “concept” (ID=5). And I have no idea what’s the reason, or what I forget or do wrong.
And because the event_status has no property I cannot organize the change to public by:EMEFS::property(‘event_status’,’hidden’,”value=1″)
I hope you have a suggestion for this problem.
Ard Hartsuijker
- The topic ‘Change of initial event status’ is closed to new replies.