I'm creating faculty and student pages for a graduate school. If a particular person's bio has "Publications", I'd like the title "Publications" to appear on their webpage appear along with the list of their articles (field slug = people-publications). If the bio does not have publications, then the people-publications field would be empty, but I'd like that title to not appear as well.
In this example, you can see that the Publications title is appearing (below "Awards") even though the professor has no publications listed: hidden link
Is there some kind of conditional logic in a shortcode that I can wrap around this title to make it disappear when the WYSIWYG field is empty?
Thanks, Minesh! I am using the legacy view for the template. When I put in the [wpv-conditional] shortcode, the site seems to only display the shortcode text, and doesn't check if the field "people-publications" is empty.
For example, see the shortcode visible underneath Publications here: hidden link
Can you please share temporary admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Brilliant. I hid the title in one of those shortcodes and it worked. Thanks, Minesh!
One related question - I'd like to be able to have the title "Research Cluster" appear underneath the photo if the person is in one (it's a checkbox with the field slug "clusters"), but disappear if not. And ideally the plural title "Research Clusters" appear if they are in more than one. Is there a way to use the shortcode to do that? Currently the "Research Cluster" title is appearing on every page.
There is a way to check if checkckbox option for checkboxes field is checked or not.
However the workaround is to use the custom shortcode. I've added the following custom shortcode to "Custom Code" section offered by Toolset:
=> hidden link
One other question I had regarded the URL fields. Occasionally these professors want to add a link to additional publications. I've created a URL field with the slug "more-publications-link" then tried to use that in a shortcode with a button that only appears if they have publications. See the bottom of hidden link. But I get stuck when trying to use that URL field in a button or an <a> tag...
As per our support policy, we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery.
I kindly ask you to open a new ticket with every new question you may have.