Skip Navigation

[Resolved] Add url parameter of post id inside a template

This support ticket is created 3 years, 10 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by wesselK 3 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1949657

Tell us what you are trying to do?

I am trying to add a link with the parameters containing the post id inside a toolset template. The link will look something like this: hidden link. In this case 50 is the current post id of the template page you are visiting. But I do not understand how to URL parameters within a toolset template.

Is there any documentation that you are following?
I tried looking for it but could not find any.

Is there a similar example that we can see?
n / a

What is the link to your site?
hidden link

#1950945

Hi,

Thank you for contacting us and I'd be happy to assist.

You can create a custom link with a current post's ID as a URL parameter using the "wpv-bloginfo" and the "wpv-post-id" shortcodes:
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/ )

Example:


<a href='[wpv-bloginfo show="url"]/categories?vestging_id=[wpv-post-id]'>Link Text</a>

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1956419

My issue is resolved now. Thank you!