Archived topic
Query Loop Button Link
3 replies · Started by Tom on December 21, 2022
Hi,
I have a Query Loop that grabs some Dynamic Date. The image really describes the issue I am having. I want BUTTON to go to the same link that the NAME link goes to. But I don't really have the same conventions to plug in the same data. Or else I am not understanding it correctly.
I don't want to create a hard-coded page - and the Query Loop is awesome. Just having trouble with a small part.
Thanks
Hi Tom,
The button's link source should've been the single post which is set to post metacurrently.
Thanks Ying!
I have a bit of a beginner's question. (It works by the way)
- How does the button know which single post to go to?
Thank you!
Hi there,
when you set the link to Single Post behind the scenes the plugin uses the get_the_permalink function to get the link for the current post in the loop
https://developer.wordpress.org/reference/functions/get_the_permalink/
