Staff-List-Plugin icon indicating copy to clipboard operation
Staff-List-Plugin copied to clipboard

Hide images/urls if no value for staff member

Open brettshumaker opened this issue 7 years ago • 7 comments

Need some new tags [staff-twitter-link], [staff-facebook-link] and also need to make sure that [staff-email] and [staff-photo] don't show up if the staff member doesn't have a photo.

https://wordpress.org/support/topic/safari-staff-photo-inner-border/ https://wordpress.org/support/topic/staff-photo-size/

brettshumaker avatar Dec 18 '17 12:12 brettshumaker

Also, [staff-twitter] doesn't work at all.

susgeek avatar Feb 04 '18 00:02 susgeek

@susgeek Could you open a new issue for the error you're experiencing so I can help you sort it out there?

brettshumaker avatar Feb 06 '18 03:02 brettshumaker

Would be nice to have something like

{has bio} [staff-bio-formatted] {/has bio} {has email} <a class="fa fa-envelope" href="mailto:[staff-email]">E-Mail</a> {/has email}

for the templates.

svenkaemper avatar Aug 20 '18 09:08 svenkaemper

@susgeek [staff-twitter] works well for me – however the URL should use "https" instead of "http".

@brettshumaker Any thoughts on the "conditional tags" I suggested for the templates?

svenkaemper avatar Sep 07 '18 21:09 svenkaemper

I would like this feature as well!

iamleese avatar Sep 14 '18 21:09 iamleese

I'm interested in this feature of at least not displaying facebook/twitter/etc if there is no data.

Even more, I do like Sven's suggestion for conditional tags. It will allow for us to properly customize the templates based off varying information that may or may not be available.

tyman00 avatar Jul 25 '19 20:07 tyman00

Are there conditional tags? Or maybe an indicator of empty image to do something with Javascript/PHP, thank you.

nufrankz avatar Aug 12 '19 16:08 nufrankz