i have this in my view , it works fine but I cant get the users website to open in a new window . is it possible?
Visit Users Website <br>
thankyou
also how can i add 'show_name' => 'if-not-empty' to it ,so if no entry it doesn't show the text ?
Hi,
Thank you for contacting us and I'd be happy to assist.
The correct usage of the target="_blank" attribute would be:
<a href="[wpv-user field='user_url']" target="_blank"><i class="fa fa-globe" aria-hidden="true"> Visit Users Website </i></a><br>
And to show this link, only when "user_url" value exists, you can wrap it in the conditional check like this:
( ref: https://toolset.com/course-lesson/using-toolset-conditional-block/#checking-for-shortcodes-values )
[wpv-conditional if="( '[wpv-user field='user_url']' ne '' )"]
<a href="[wpv-user field='user_url']" target="_blank"><i class="fa fa-globe" aria-hidden="true"> Visit Users Website </i></a><br>
[/wpv-conditional]
regards,
Waqar
My issue is resolved now. Thank you!