Skip Navigation

[Resolved] Dynamic URL for Buttons

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

Problem: I would like to create a link to a custom post, but it should include a specific hash.

Solution: Use the wpv-post-url shortcode to construct your own link tag like this:

<a href="[wpv-post-url]#book">[wpv-post-url]</a>
This support ticket is created 5 years, 4 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by zhi-kaiC 5 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#1342889

I am trying to add a toolset button with a dynamic url to my content template. I wish to link it to a bookmark on the post url

e.g.
post url: hidden link
bookmark url: hidden link

How can I do so?

#1343205

Hello, you can use the wpv-post-url shortcode to create your own link tag, like this:

<a href="[wpv-post-url]#book">[wpv-post-url]</a>

Will this work?

#1343561

My issue is resolved now. Thank you!