Posted: February 17, 2014 at 1:32 am
|
What is your WordPress version? 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. |
|
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. |
|
Dean, thanks. I’m not real PHP proficient but if your code fix is well documented, I’ll take a try at it. |
|
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. |
|
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 |
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. |
|
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.