Tell us what you are trying to do?
<!-- Conditional output for user, who is not the post author of the current post in the loop -->
[wpv-conditional if="( '[wpv-current-user info='user_login']' ne '[wpv-post-author format='meta' meta='user_login']' )"][cred-relationship-form form='relationship-form-reitanlage-benutzer' child_item='$current'][/wpv-conditional]
<!-- Conditional output for user, who is the post author of the current post in the loop -->
[wpv-conditional if="( '[wpv-current-user info='user_login']' eq '[wpv-post-author format='meta' meta='user_login']' )"][cred-relationship-form form='relationship-form-reitanlage-benutzer-author' child_item='$current'][/wpv-conditional]
Somehow it doesn't work. I think there is a mistake in it. But I can't figure out, what's wrong.
Is there any documentation that you are following?
Yes. But I can't remember where I found it.
Is there a similar example that we can see?
See above
What is the link to your site?
versteckter Link
Hello and thank you for contacting the Toolset support.
You will need to change "user_login" to "login" in your condition shortcode. Your code will be:
<!-- Conditional output for user, who is not the post author of the current post in the loop -->
[wpv-conditional if="( '[wpv-current-user info='login']' ne '[wpv-post-author format='meta' meta='user_login']' )"][cred-relationship-form form='relationship-form-reitanlage-benutzer' child_item='$current'][/wpv-conditional]
<!-- Conditional output for user, who is the post author of the current post in the loop -->
[wpv-conditional if="( '[wpv-current-user info='login']' eq '[wpv-post-author format='meta' meta='user_login']' )"][cred-relationship-form form='relationship-form-reitanlage-benutzer-author' child_item='$current'][/wpv-conditional]
Check the shortcode documentation on this page for the supported attributes for the shortcode "wpv-current-user"
https://toolset.com/documentation/user-guides/views/views-shortcodes/#vf-153354
I hope this helps. Let me know if you have any doubts.
Thanks you so much, Jamal. Now it works 🙂