Displaying a pod template in a popup
-
Hi,
I am looking for a way to open a pod template in a popup. I have the following setting:
pod name: “artist”
template name: “profile”That template works well if it is called on a separate page. But now I need to it to open in a popup. So I installed PopupMaker. I created a popup and inserted a shortcode like this:
[pods name="artist" template="profile"]
PopupMaker works in the way that you get a class (popmake-xxx) for each popup – and you just need to add that class to a link and then the popup will open instead of the link.
So on the artist page I have a Pods element list widget with this template:
<a href="" title="{@post_title,esc_attr}" class="popmake-xxx">{@nachname} {@vorname} </a><br />
This worked well as long as I just had one artist. But now I have added the second one – and of course the pods shortcode will display all the artist profiles, instead of just one.
So I am trying to find the correct “where” clause to add to the shortcode – and also possibly need to add the ID or post_title somewhere on the artist page into the link, so the ID (or post_title) will be handed over to the shortcode, so the shortcode will only process the template for the relevant artist.
Within the shortcode I tried
slug="id" slug="{@ID}" where="slug='{@ID}'"
None of this seems to work.
Could you please help? Thank you!
- The topic ‘Displaying a pod template in a popup’ is closed to new replies.