This support ticket is created 4 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
<!-- 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
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]