Hi all,
a customer wants to have his team presented in a way I’ve not done before so I wanted to ask for opinions on how to solve this in a reasonable way (no need to be super elegant but also not a terrible hack). Here’s how it should work:
Teammembers are linked in the menu and when you open the teammember page theres just an image and a quote with a “read more” button. The “read more” leads to another page with a full CV, contact details, more pictures, …
The quote-page should have the slug `/team/person-name`
The cv-page should have `/team/cv/person-name`
Both pages have a different template structure. My first thought was to just create two post types, which would be the fastest/easiest.
I’m not sure if it’s possible to have the post type hierarchical with different templates and slugs for parent/child pages. Even if, that somehow feels overly complicated.
And yes, I know it’s terrible to require two clicks to reach an individuals contact information but it’s the customers requirement and I couldn’t change his mind.
How would you approach this?
I’d appreciate any tipps and ideas.
Thanks
[ad_2]
It’s not good practice but can’t you make 1 page for each team member manually?
Create a custom post type ‘person’ (or whatever).
I don’t know what you’re using theme/plugins etc. so hard to say how to do the rest… but I would:
Create a custom archive page with a layout of ‘featured image’ and ‘excerpt’ plus ‘button’. The archive finds one post by ID – so shows only one post. The excerpt is the quote.
Create a post template with ‘featured image’, ‘content’. The content is CV etc.
On the menu, link to the archive page with a variable (probably post ID) /site/page/?person=22. This is used in the Archive post loop to select which post is displayed.
The read more then just goes to the post itself which has all the persons details.