Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('salient_portfolio_hook_single_before_content','salient_child_single_project_breadcrumbs');
- function salient_child_single_project_breadcrumbs() {
- global $post;
- $terms = get_the_terms($post->id,"project-type");
- if ( isset($terms[0]) ){
- echo '<style>#project-breadcrumbs {
- display: flex;
- margin: 30px 0;
- }
- #project-breadcrumbs li{
- list-style: none;
- margin-right: 15px;
- }</style>';
- echo '<ul id="project-breadcrumbs">
- <li><a href="http://www.finleydesignarch.com/portfolio/?grid-filter='.strtolower(str_replace(' ','-',$terms[0]->name)).'">Portfolio</a></li>
- <li>»</li>
- <li>'.get_the_title().'</li>
- </ul>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement