Site logo

[Resolved] Query Loop Button Link

Home Forums Support [Resolved] Query Loop Button Link

Home Forums Support Query Loop Button Link

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2469835
    Tom

    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.

    image

    Thanks

    #2469965
    Ying
    Staff
    Customer Support

    Hi Tom,

    The button’s link source should’ve been the single post which is set to post metacurrently.

    https://www.screencast.com/t/PPNxaYX2

    #2470426
    Tom

    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!

    #2470675
    David
    Staff
    Customer Support

    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/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.