I have two queries separated into their own loops- a loop for buttons and a loop to display groups from a custom post type. I want to make it so the button takes you to the group rendered below with the same name. I was hoping I could just put {post_slug} as the CSS ID and then have the button link to #{post_slug} but that did not work. I’d surely be able to get this working with some JavaScript but I’d like to avoid that if possible.
Any solutions?