Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
How to extract events-staff name on registration-page-template? | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium How to extract events-staff name on registration-page-template?

How to extract events-staff name on registration-page-template?

Posted: February 16, 2013 at 2:54 pm

Viewing 2 reply threads


Frank Grafenstein

February 16, 2013 at 2:54 pm

I want to show only the event-staff name(s) on event page and event registration page, embedding it in a link to a personal staff-page.

How can I do that using shortcodes?

Thanks
Frank


Dean

  • Support Staff

February 18, 2013 at 1:42 am

Hi

There is no easy way to do this that looks good, you would have to create a custom shortcode to enable you to edit the code to add in a link around the staff members name.


Frank Grafenstein

February 20, 2013 at 6:25 am

Oh, I found a quite easy way:

Modifing sql-query in event-list.php, adding
.. GROUP_CONCAT(DISTINCT st.name ORDER BY st.id ASC) staff_name ..

As resulted events are grouped by event_id, staff name field will be concateneted instead of reduced to the value of the first row.

Exploding $events->staff_name – string gives me an array with all names I need.

Not very difficult!

Hope this helps somebody.

Frank

Viewing 2 reply threads

The support post ‘How to extract events-staff name on registration-page-template?’ 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 - Staging Server