Retaining connected post info
-
I found this plugin from a post on WPMU. I have to say, this is turning out to be pretty awesome.
In my setup, I have two post types: Services and Locations. Each service is linked to several different locations. My setup can be seen here.
In the content for the services, I’d like to use a shortcode that I’ve created, that would essentially display the location. But I’m having trouble trying to figure out how to use the p2p relationship to retain the location that was queried.
On the above mentioned example, if I were to click on “Abbott, CA”, I can see all the services connected to that location. Clicking on a service, I’m taken to the service post. In the content of that post I’d like to be able to use “Abbott, CA”…even if this wasn’t a shortcode and it was just some <php> in the content, I’m still stuck on how to accomplish this.
Any thoughts? TIA!
- The topic ‘Retaining connected post info’ is closed to new replies.