Staff-List-Plugin
Staff-List-Plugin copied to clipboard
Hide images/urls if no value for staff member
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/
Also, [staff-twitter] doesn't work at all.
@susgeek Could you open a new issue for the error you're experiencing so I can help you sort it out there?
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.
@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?
I would like this feature as well!
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.
Are there conditional tags? Or maybe an indicator of empty image to do something with Javascript/PHP, thank you.