I display the leadership details of the company. Leaders are in the bios table. I've actually created 3-4 different layouts depending on what role the employees have in the company. Under the About pages of the site is a leadership page with head shots of the leaders. The leadership page is a WP page which is a child of the about page. So if I'm on the leadership page the menu reflects that leadership is under About by showing an orange underline under About. When I click on a person I go to their toolset layout which is generated on the fly. Is it possible to tell wordpress that this layout is a child of About/Leadership?
Is there a shortcut for that layout I could put on a Leadership details page?
Hi James,
Thank you for contacting us and sorry about the delay, as we had an unusually busy queue.
I've checked the individual team member's detail page ( e.g. hidden link ) and noticed that an orange line is already showing under the "About" menu item.
( screenshot: hidden link )
If you'd like to extend this orange underline style to the "LEADERSHIP" menu item as well ( when any of the individual team member's page is being viewed ), you can make use of body classes "single single-bio" in custom CSS code, for example:
body.single.single-bio .main-header-bar .small-header-menu a:first-child {
border-bottom: 5px solid orange;
}
Note: To check which CSS code is applying to different page elements, you can use Google Chrome's inspect element tool, as explained in this guide:
hidden link
regards,
Waqar
Hi. I've been focusing on other details and now coming back to this issue. I did find a work around where I hardcode the menu item into each layout for that custom post. It works as far as displaying the orange border but it doesn't help with the menu paths. Do you know of anyway to modify the paths of the custom post types?
Hi James,
Thanks for writing back.
I'll assume, you'd like to change the current structure of "Bio" post type path/permalink from:
staging.esassoc.com/bio/leslie-moulton-post/
To:
staging.esassoc.com/about/leadership/leslie-moulton-post/
If that is correct, please go to WP Admin -> Toolset -> Post Types and open the "Bio" post's edit screen.
Under the "Options" section, please select "Use a custom URL format" option, add "/about/leadership" in the field below and then click the "Save Post Type" button to save the settings.
( screenshot: hidden link )
I hope this helps and for a new question/concern, please open a new ticket.
regards,
Waqar
My issue is resolved now. Thank you! !!!!!
Sorry i was so excited about the function to create the custom URL that I didn't think about the other examples. Can you add more than one custom url to bios?
Employees can be leadership, office leads, employee-owners, service experts, project experts and attached to news items. I've been creating different views and layouts to retrieve the bio info as necessary.
Do I get just one custom url or is it possible to add several?
Thanks again, Jim
Hi Jim,
I'm afraid, it is not possible to set multiple custom URL formats to a single post type, through that custom URL format option.
To make this work, you can create multiple post types for storing the details/bio of employees at different levels.
For example, instead of using a single "Bio" post type, you can create multiple post types e.g. "Leadership Team", "Office Leads Team" etc.
This way, you'll be able to assign a custom URL format to each level, independently.
regards,
Waqar
My issue is resolved now. Thank you!