Hi
I am following the toolset tutorial "Editing Existing Connections between Related Posts"
In the tutorial, the wpv-post-link appears to replace the link display label with the text "Edit this Album Track"
see the image attached.
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/editing-existing-connections-between-related-posts/
How do you override the [wpv-post-link] with another label e.g. Edit Tournament.
The hyperlink is correct, it is just the display label I want to replace.
Thanks
Hi, you can change the text label by replacing the text in between the cred-relationship-form-link shortcodes that were generated automatically:
[cred-relationship-form-link form='m2m-editing-form' role_items='$fromViews' content_template_slug='editing-m2m']Edit this Tournament[/cred-relationship-form-link]
Thanks for the reply but in step 4 of the tutorial the link is on a view and we insert a relationship link.
This gets inserted as
rather than the format, you have suggested.
I end up with the hyperlink with a label with the name of the tournament.
see attached.
By the way, it all works correctly. I just want to change the label to something like "Edit Tournament".
That's odd, I'm not sure why it would be inserted as wpv-post-link. That should hyperlink to the Tournament post itself, not a Form to edit the Tournament. May I log in and see how this is set up? Please show me where I can find this View on the front-end of your site.
It's a local instance.
Here are the screenshots if I select the 2020 European Championships
On selection, you are redirected to the screen EditTournament_2.
On selecting the link on the EditTournament_2 you are sent to EditTournament_3.png which has the relationship form
Okay so it's not a link directly to the Form, it's a link to the Tournament post. You can create a custom link to the Tournament post using the wpv-post-url shortcode:
<a href="[wpv-post-url]">Edit Tournament</a>
My issue is resolved now. Thank you!