Support

Home Forums Event Espresso Premium Staff Member E-mail Address Not Displaying

Staff Member E-mail Address Not Displaying

Posted: February 17, 2014 at 1:32 am

Viewing 5 reply threads


William P Riley

February 17, 2014 at 1:32 am

What is your WordPress version?
3.8.1
What are the versions of Event Espresso and the installed add-ons?
Version 3.1.36.4.P
Event Espresso – Calendar
Event Espresso – Custom Template Display
Event Espresso – Recurring Events
Event Espresso – Social Media
Event Espresso – Ticketing
Is this a new installation, or one that was recently upgraded?
New installation (installed on Saturday)
If your site is online, please include a link to the registration page.
http://216.117.151.229/elpasocountybarorg/event-registration/?ee=1#/

I’m displaying a staff member on the above Event Page using the shortcode [ESPRESSO_STAFF id=”1″]. You’ll see it about half-way down the page under the headline “El Paso County Bar Association Event Organizer”.

All of this staff member’s fields with entered information are displaying except the E-mail address which is NOT blank in her record. When I add test data to other unused fields like Twitter or Role, they display.

I’ve added the following custom CSS but this E-mail display issue existed BEFORE adding this:

.event_staff {width: 96% !important; border: none !important;}

Thanks for your help in getting this E-mail address to display.


Dean

February 17, 2014 at 5:06 am

Hi,

I will need to raise a ticket to look into this, the shortcode simply isn’t grabbing the email data.

If you want to dig into the code I can give you a fix for it.


William P Riley

February 17, 2014 at 3:00 pm

Dean, thanks. I’m not real PHP proficient but if your code fix is well documented, I’ll take a try at it.


Dean

February 18, 2014 at 12:56 am

Hi,

I figured the easiest thing to do was create a custom shortcode for you.

If you add a file called custom_shortcodes.php to wp-content/uploads/espresso/ and then copy and paste the content of this Gist to the file https://gist.github.com/Apina/3ced6803d0290fea8b0a

After that use the shortcode [ESPRESSO_STAFF_MODIFIED] and you’re good to go.


William P Riley

February 18, 2014 at 3:29 am

Dean, thanks. The new [ESPRESSO_STAFF_MODIFIED] now displays the E-mail address except it is not an active link as the website link is.

HOWEVER, it also displays a lot of related “garbage” along with the photo at the top of the Event Registration form. I’ve copied and pasted below:

object(stdClass)#981 (5) { [“id”]=> string(1) “1” [“name”]=> string(19) “Dr. Zelna E. Joseph” [“email”]=> string(37) “executivedirector@elpasocountybar.org” [“role”]=> string(0) “” [“meta”]=> string(675) “a:10:{s:5:”phone”;s:12:”719-473-9700″;s:7:”twitter”;s:0:””;s:5:”image”;s:0:””;s:7:”website”;s:31:”http://www.elpasocountybar.org/”;s:11:”description”;s:326:”

zelna_joseph
“;s:12:”organization”;s:30:”El Paso County Bar Association”;s:5:”title”;s:18:”Executive Director”;s:8:”industry”;s:0:””;s:4:”city”;s:28:”Colorado Springs, CO 80909″;s:7:”country”;s:3:”USA”;}” }


Tony

  • Support Staff

February 18, 2014 at 7:23 am

Hi William,

Looks like there’s a debugging line in the code, if you look at line 107 within that Gist you’ll find

var_dump($person);

Just comment out that line with // like so:

// var_dump($person);

Do that within your custom_shortcodes.php file to remove that output.

Viewing 5 reply threads

The support post ‘Staff Member E-mail Address Not Displaying’ 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