Wordpress same post multiple displays

29 views Asked by At

I'm slightly stuck on a solution to a problem in Wordpress. I have a site where it lists 'clients' as a custom post type. These clients can either be an Author, a Speaker or Both. When adding a client I've set 2 text boxes for biographies - so it can accept separate bio information for Speaker and Author (rather than creating 2 separate clients with matching names, headshots etc). Author and Speaker have been set as custom taxonomies.

On the front end, I've created a couple of list pages, one that lists all Authors, the other than lists all Speakers. This is all fine so far.

What I haven't solved on the front end is how to display the clients Speaker info if they are accessed via SiteMenu>Clients>Speakers>JoeBloggs and conversely their Author info via SiteMenu>Clients>Authors>JoeBloggs.

I guess I would need to capture the previous URL that the visitor is coming from, check if they are looking for a speaker or author, and then display the relevant client info. Or is there an easier way?

0

There are 0 answers