WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] add event page (5 posts)

  1. mrppp
    Member
    Posted 8 months ago #

    On the add event page you have:
    When, Where, Details etc.
    Under Where i.e location you have Address/City/state etc.
    Could another field be added here so when creating event a user could enter the venue website from the add event form and that would be added to the location details.? Image below
    i am using event attributes for the event which works fine

    #_ATT{Website}
    #_ATT{Phone Number}
    #_ATT{Contact Email}

    But would like the location to be able to have a website added without having to go into locations and manually add using location attributes #_LATT{Venue Website}

    I amagine some php code in where.php
    http://whatsoninberkshire.co.uk/where.jpg

    I did remove REGION ( but can't remember how i did) i guess i could have renamed that as website instead, if so what was the default code for this, shows in where.php but imagine another reference in another file?
    event/location.php i think i removed it so it does not show, so could i put code back and rename?

    <tr>
    			<th><?php _e ( 'Region:', 'dbem' )?> </th>
    			<td>
    				<input id="location-region" type="text" name="location_region" value="<?php echo esc_attr($EM_Location->location_region, ENT_QUOTES); ?>" />
    			</td>
    		</tr>

    change to

    <tr>
    			<th><?php _e ( 'WEBSITE:', 'dbem' )?>&nbsp;</th>
    			<td>
    				<input id="location-region" type="text" name="location_region" value="<?php echo esc_attr($EM_Location->location_region, ENT_QUOTES); ?>" />
    			</td>
    		</tr>

    http://wordpress.org/plugins/events-manager/

  2. mrppp
    Member
    Posted 8 months ago #

    umm adds the field but does not seem to display it

  3. philipjohn
    Member
    Posted 8 months ago #

    Hiya,

    To do this you would probably need to use a hook into the event save filter that checks if a website is entered and updates the location to add it, if it doesn't already exist....

    Phil

  4. mrppp
    Member
    Posted 8 months ago #

    Ok thanks, where can i read up on hooks?

  5. caimin_nwl
    NetWebLogic Support
    Posted 8 months ago #

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.