Skip Navigation

[Resolved] Post URL href of item set by different post ID

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by Minesh 11 months, 1 week ago.

Assisted by: Minesh.

Author
Posts
#2674385

Hello,
I have a View to display related posts based on admin's selection. I have created a repeatable group with number field(s) to hold desired related post ID(s) of the same post type and the View works in the Content Template as desired.
There is no problem to display related post's featured image, title, etc. But I am struggling with the <a> tag definition which I need to encapsulate all the information displayed.
This syntax [wpv-post-url item="[types field='z23-id-souvisejiciho-zajezdu' format='FIELD_VALUE'][/types]"] works just fine as long as it is not part of the HREF parameter.
Apparently, the problem lies in the quotation marks within the HREF attribute:
I believe I have tried all possible combinations of quotation marks but without success.
Could you help, please?
All the best,
Tom

#2674401

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you try to use the following line of code and check if that help you to resolve your issue.


#2674409
Snímek obrazovky 2023-12-18 v 16.17.54.png

Hello, thanks for the speed, but this did not help. See the screenshot attached - the result is the same as in my version of the line:
I have run out of ideas 🙂

#2674669

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share problem URL where you added the anchor tag as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2675083

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It asks for authorization access details when I try to access the wp-admin. Can you please send me authorization access details.

#2675085

Could you send me a screenshot, pls? I have no idea what you might need more, you shouldn't 🙂

#2675087

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please check the screenshot added to the following link:
- hidden link

#2675097

ok, it was a geolocation protection. Ty "cms" in both fields

#2675197

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I would like to know to what entity you want to wrap the anchor tag.

I've added link with "click here" text and I can see its showing correct URL.

<a href="[wpv-post-url item='[types field='z23-id-souvisejiciho-zajezdu' output='raw'][/types]']">click here</a>       
#2675213

wooow, that is strange - the same shortcode does not work in Fields and Text block, but it works in Shortcode block.
I would have never guessed that.
THANK YOU very much!
I can continue with the job now, thank you again!