Skip Navigation

[Resolved] [wpv-post-url] does not work, print the entire post the place of the url

This support ticket is created 4 years, 1 month 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
- 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 2 replies, has 2 voices.

Last updated by martinM-18 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1524325

I am trying to:
Print url

Link to a page where the issue can be seen:
hidden link

I expected to see:
an url example https://toolset.com/forums/forum/professional-support/

I'm using php the do_shortcode("[wpv-post-link"]) works fine but the do_shortcode(" [wpv-post-url] ") doesn't work

Instead, I got:
print all the posts

#1525103

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

If you are using the PHP - I'm not sure why you are using the do_shortcode with Toolset fields shortcode as that is not recomonded.

Please check our doc that may help you to check how you can display the fields with PHP template:
=> https://toolset.com/documentation/customizing-sites-using-php/

I think you should simply use the WordPress standard function: the_permalink
=> https://developer.wordpress.org/reference/functions/the_permalink/

#1527489

My issue is resolved now. Thank you!

Solved width get_permalink( )
https://developer.wordpress.org/reference/functions/get_permalink/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.