I want to show a link on my site, but only to users who have created an account (and are logged in) & have entered their 'company details'. Those 'company details' are a custom post type that I created separately.
I now have a toolset access conditional code that can see if a user is logged in or not. And then for the logged in users, I would like to have a nested conditional code that can see if a user has filled in all of their company details.
the conditional code I now have looks like this:
[wpv-conditional if="('[wpv-current-user info='wpcf-btw-nummer-fact'']' eq '')"]Please fill in company details[/wpv-conditional]
[wpv-conditional if="('[wpv-current-user info='wpcf-btw-nummer-fact'']' ne '')"]Show link[/wpv-conditional]
Hello. Thank you for contacting the Toolset support.
To check the custom user field value, you should use the shortcode [wpv-user field='wpcf-btw-nummer-fact']:
So, the conditional statement would be:
[wpv-conditional if="('[wpv-user field='wpcf-btw-nummer-fact']' eq '')"]
Please fill in company details
[/wpv-conditional]
[wpv-conditional if="('[wpv-user field='wpcf-btw-nummer-fact']' ne '')"]
Show link
[/wpv-conditional]