Posted: October 4, 2012 at 4:25 am
|
Is there any way with the ESPRESSO_STAFF shortcode I can show email address? thanks, Rob |
|
Hi Rob, Looking at the shortcode, you cannot currently split the details up into one or the other. I think it should be an easy fix to make the fields not display if they are empty, I will suggest that to the devs. Regarding email, it isn’t being pulled over for some reason, once more i’ll get a dev to look inot it for a fix in the next update. |
|
awesome thanks. What sort of time horizon is that likely to be? If it’s the next couple of weeks then I’ll wait otherwise I’ll figure out a workaround somehow. |
|
Hey Rob, It should be in the next update which is due soon (read a few weeks) Here’s the code I came up with, which goes in the includes/shortcodes.php, its just basic if statements.
|
|
ok, nice one. Looking at your code, I wonder if those $meta != NULL checks are working. When I view the staff, all the fields appear regardless of whether they are set or not |
|
Hey Rob, This isnt the code in the plugin its what I am putting forward to be included, I thought I’d put it here in case you wanted to you it as is or as a base to change the shortcode. |
|
oops, sorry misunderstood you. yeah, I think I’ll go that way – it’s so simple I don’t really need to wait for the release. thx |
|
Hi Dean, I’ve implemented this and it worked well. The only slight gotcha is that email isn’t stored in the $meta, it’s in aseparate column in the db. So, I had to change the SQL statement and add an extra couple of lines to your code for that. |
|
Hey, Thanks for the feedback, I’ll get that relooked at so we can add it into the core next update. |
The support post ‘Staff Email’ 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.