WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: The Events Calendar] Posting events as default? (3 posts)

  1. fehnman
    Member
    Posted 4 years ago #

    Hi,

    I'd love to have the "is this post an event" radio button default to "yes". The contents of the event setup box should then also be visible, of course.

    Is there a way to do this?

    Thanks in advance (and for this great plugin)

  2. effendi13
    Member
    Posted 4 years ago #

    Hi fehman,

    I have opened an enhancement request on this.

    For faster results, go into the plugin editor, edit The Events Calendar, go to the-events-calendar.php and add this line:

    $_isEvent = 'yes';

    Just before the line:

    $isEventChecked = ( $_isEvent == 'yes' ) ? 'checked' : '';

    Disclaimer - This has not been fully tested and it will be over-written if you update the plugin. Modify at your own risk.

    EDIT: edited the code, I had written $_isEvent = 'no'; which was incorrect.

  3. fehnman
    Member
    Posted 4 years ago #

    Works great, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic