Navigation überspringen

[Gelöst] [wpv-post-link] Adds additional quotes

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 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.

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von WillL606 vor 3 years, 12 months.

Assistiert von: Christopher Amirian.

Author
Artikel
#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?
versteckter Link

What is the link to your site?
versteckter Link

#2383273

Christopher Amirian
Unterstützer

Sprachen: Englisch (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
Unterstützer

Sprachen: Englisch (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!