Support

Home Forums Pre-Sales Staff member and event list and short codes

Staff member and event list and short codes

Posted: October 11, 2013 at 10:32 am


eDee Bruns

October 11, 2013 at 10:32 am

Still doing the test drive – loving it.

I’m not getting the short code correct – I need to put a staff members calender of events into that staff members profile. It’s staff member #1. And below their profile I need the calender of events they have created, just theirs.

Thanks.


Dean

October 14, 2013 at 4:12 am

Hi,

The calendar currently does not allow filtering by staff member, you could output a list of events instead by using [EVENT_LIST staff_id=”1″]


eDee Bruns

October 14, 2013 at 12:55 pm

That’s what I have, but I’m not getting the result.

This is the calendar: http://www.demoee.org/edee/calendar/
As you can see there are a few events by staff member 2 and staff member 3 and 1 event by me.

This is what I have setup for code: http://i298.photobucket.com/albums/mm256/barefootmarket/staffmembers_zpsaad95fb6.jpg

Is it wrong? Should I be checking other settings?


Sidney Harrell

October 14, 2013 at 3:27 pm

After you had staff member 3 create an event, did you then assign the event to staff member 3 in the event editor under “Event Staff / Speakers”? You could create a category corresponding to each staff member and then create a calendar for each staff member filtered by category. It’s a bit more work, you have to remember to check off the category and event staff boxes each time you create an event.


eDee Bruns

October 14, 2013 at 3:38 pm

I’m not creating the events, our users (staff members) pay to create their own events in our community calendar.
Staff Member 3 as the staff member who created the event, I don’t see any place to assign anything to the staff member within the event. Since Staff Member 3 created the event wouldn’t it be assigned to that staff member?


Sidney Harrell

October 15, 2013 at 8:29 am

The staff management (that goes with that shortcode) is unrelated to the Roles and Permissions type of Event Manager that I think you are using. Under General Settings there is a setting for “Use Staff Manager”. If you turn that on you get an admin page where you can add staff members, then in the event editor at the bottom of the right column is where you can assign staff to the event.
I’ll have to take a look at the calendar code and see what can be done about filtering the calendar by Event Managers (who created the event) which I believe is what you are talking about.


Sidney Harrell

October 15, 2013 at 9:30 am

Ok, I came up with a way of adding a wp_user_id filter to the calendar (https://gist.github.com/sidharrell/6993165) and added it to your demoee.org site. If you change your calendar shortcode to:

[ESPRESSO_CALENDAR wp_user_id="3"]

then it should make a calendar of events created by user_id 3. If you go to the Users list and click on a user then look up in the address bar, you should see user_id= and a number. That is the number you want to use in the shortcode.


eDee Bruns

October 15, 2013 at 9:58 am

YES!!!!
THANK YOU SO MUCH!
That is slick and exactly what I needed.
Thank you.

The support post ‘Staff member and event list and short codes’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso