WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
add a "add new" button (2 posts)

  1. gogui
    Member
    Posted 2 years ago #

    Hey,

    i'm looking for adding an "add new" button just before the full calendar.

    In the calendar-full.php I added this code :

    <p><?php echo '<a class="em-button button add-new-h2" href="' . em_add_get_params($_SERVER['REQUEST_URI'], array('action'=>'edit','scope'=>null,'status'=>null, 'event_id'=>null)).'">Add New</a>'; ?></p>

    But when I click on the button it goes to http://www.mywebsite.com/my-page/?action=edit (and it doesn't work...) instead of http://www.mywebsite.com/members/member-name/events/my-events/?action=edit

    Anyone Can help me please ?
    Thank you

    Greg

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

  2. agelonwl
    Member
    Posted 2 years ago #

    maybe this old post might give you an idea http://wordpress.org/support/topic/plugin-events-manager-create-new-button-on-main-events-page?replies=5 as a reference

    Also, try to checkout EM templates for buddypress @ templates/buddypress (e.g. profile.php)

    http://wp-events-plugin.com/documentation/using-template-files/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic