Skip Navigation

[Resolved] Viewing posts near the current post being displayed, by distance

This support ticket is created 4 years, 3 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 1 reply, has 1 voice.

Last updated by davidM-26 4 years, 3 months ago.

Author
Posts
#1477521

I have a website listing events. I have it all setup, and on the content template I am showing "other events on this day"

That part works.

I also worked out how to only show events a certain distance from the post being displayed, that works as well (thanks to another help post for someone else!)

What I'd like to do is reference the actual distance.
So, rather than just list the name of the event, it also shows how far it is from the post being displayed.

I can't seem to find a way to do that by inserting a field for the distance.

#1477523

I try and try and try and fail

I post on here, then wait - and then work it out... standard!! Haha

I utilised the [wpv-attribute name="your_shortcode_attribute"] idea in the hard coded address 🙂 Worked!

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