WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
Default location and organizer details (6 posts)

  1. dirtybird3g
    Member
    Posted 1 year ago #

    Is it possible to set a default location and contact details so I don't have to type them each time I create a new event?

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. Richard
    Member
    Posted 1 year ago #

    Hi dirtybird3g,

    wp-content/plugins/all-in-one-event-calendar/app/view/admin/box_event_location.php

    in this file you have to change the "value"

    eg:

    <input type="text" name="ai1ec_address" id="ai1ec_address" value="<?php echo $address; ?>" />
    to

    <input type="text" name="ai1ec_address" id="ai1ec_address" value="Some adress" />

    I hope this helps!

  3. dirtybird3g
    Member
    Posted 1 year ago #

    The problem with this is that when you have an event with a location different from what you set to default, it reverts back to the default even after changing it and saving.

  4. Ula Szczepaniak
    Member
    Posted 1 year ago #

    @dirtybird3g,

    Please try with this code:

    <input type="text" name="ai1ec_address" id="ai1ec_address" value="<?php if ($address =="") echo"Some address"; else echo $address; ?>" />

    Let me know if it works for you.

    Regards
    Ula

  5. dirtybird3g
    Member
    Posted 1 year ago #

    That works perfectly. Thanks!

  6. Ula Szczepaniak
    Member
    Posted 1 year ago #

    You're welcome.
    Take care!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.