Skip Navigation

[Resolved] [wpv-post-link] Adds additional quotes

This thread is resolved. Here is a description of the problem and solution.

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 2 years, 5 months ago. 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.

This topic contains 3 replies, has 2 voices.

Last updated by WillL606 2 years, 5 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#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?
hidden link

What is the link to your site?
hidden link

#2383273

Christopher Amirian
Supporter

Languages: English (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

Languages: English (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!