Saltar navegación

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

This support ticket is created hace 5 años. 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.

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por MargeP6083 hace 5 años.

Autor
Mensajes
#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/

enlace oculto

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"]enlace oculto">Click to create your Profile[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

My issue is resolved now. Thank you!