Sauter la navigation

[Résolu] Simple link to Current User Profile Type on current user Account page

This support ticket is created Il y a 5 années et 3 mois. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : 

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par MargeP6083 Il y a 5 années et 3 mois.

Assisté par: Shane.

Auteur
Publications
#1381101

I am trying to find a way to show a simple link to the user profile, which is custom post type with a custom single template.

https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/
I've spent hours trying to figure this out. None of the shortcodes I've tried work. They lead to the form. I am obviously missing something.

Something like this, which only shows dummy links. https://toolset.com/documentation/user-guides/building-the-my-account-page/

What is the link to your site? lien caché

Thanks!

#1381321

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Screenshot 2019-11-12 at 1.38.30 PM.png
Screenshot 2019-11-12 at 1.38.17 PM.png

Hi Marge,

Thank you for getting in touch.

Ok so for this you need to create a view that is listing out the user profiles. Then add a query filter to that view for the post author.

Set the filter to be the current author who is logged in. From there you can scroll to the loop editor of the view and then add the link to the profile by using the loop wizard.

Please let me know if this is clear. You can see my screenshots as well.

Thanks,
Shane

#1381415

"From there you can scroll to the loop editor of the view and then add the link to the profile by using the loop wizard."
I am not clear on what that means. Can you spell this out for me? Step by step?

I tried creating a link. see screen grabs below,

When I click loop wizard, this pops up: lien caché
Next I selected this: lien caché

I guess I don't understand how "then add the link to the profile" works. I tried to add current lien caché But that doesn't do anything. I guess that's not a link.

I am trying to add a link the "My Account" page that will take the user to their own Profile post.

#1381463

OK, I think I got a little closer. It populated an unformatted url. I can probably use that in a linked My Profile link. Thanks for the help!