Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test_breadcrumbs() {
- if(!is_front_page()) {
- echo '<nav class="breadcrumb">';
- echo '<a href="'.home_url('/').'">Home</a><span class="divider">/</span>';
- if (is_category() || is_single()) {
- the_category(' <span class="divider">/</span> ');
- if (is_single()) {
- echo ' <span class="divider">/</span> ';
- the_title();
- }
- } elseif (is_page()) {
- echo the_title();
- }
- echo '</nav>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement