Skip Navigation

[Resolved] How to hide "create a profile" link on account page if the user has one

This support ticket is created 4 years, 11 months 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.

This topic contains 1 reply, has 1 voice.

Last updated by MargeP6083 4 years, 11 months ago.

Author
Posts
#1406091

I want the user to see the link for Create a Profile on the "My account" Page. If the user already has created the profile, I want the user to see nothing.

This post below says the user can create a profile, but doesn't talk about the flow of how the user gets to the "Create Profile" page

https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/

hidden link

thank you!

#1406313

I realized the solution is in the View:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-body view_template="loop-item-in-current-profile"]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]hidden link">Click to create your Profile[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

My issue is resolved now. Thank you!