Passer la navigation

[Résolu] [wpv-post-link] Adds additional quotes

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

Passing [wpv-post-link] data as the shortcode attributes adds additional quotes

Solution:

Use the combination of

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153369

and:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154469

To create the same data to send as the shortcode attribute.

This support ticket is created Il y a 3 years, 12 months. 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.

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

Dernière mise à jour par WillL606 Il y a 3 years, 12 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#2382939

Tell us what you are trying to do?
On the right column of any essay page there is a View for other essays by the same author. The link to the name of the author should go to the author's about page, but it seems there are extra quotes around the url sending it to a 404 page.

Is there any documentation that you are following?

Here is what I have for [wpv-loop] in the "get-related-author-essay-widget":
[wpv-view name="display-author-related-essay-widget" authorname='[wpv-post-link]' wpvrelatedto="[wpv-post-id]"]
And here is what I have before the loop in the "display-related-author-essay-widget":
<h6 class="author-related-essays">other essays by <br><span>[wpv-attribute name="authorname"]</span></h6>

I believe there is some error in this code producing extra quotes.

Is there a similar example that we can see?
lien caché

What is the link to your site?
lien caché

#2383273

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Also, please tell us which view to check.

#2383863

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

I fixed the issue by using the combination of:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153369

and:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154469

So I added two attributes one having the title and the other one having the URL and in the View that retrieves the info, I just added the A tag.

Thanks.

#2384101

My issue is resolved now. Thank you!