'; // Home page echo '
  • ' . $astrology_home_title . '
  • '; echo '
  • ' . $astrology_separator . '
  • '; if ( is_archive() && !is_tax() && !is_category() && !is_tag() ) { echo '
  • ' . the_archive_title() . '
  • '; } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) { // If post is a custom post type $astrology_post_type = get_post_type(); // If it is a custom post type display name and link if($astrology_post_type != 'post') { $astrology_post_type_object = get_post_type_object($astrology_post_type); $astrology_post_type_archive = get_post_type_archive_link($astrology_post_type); echo '
  • ' . $astrology_post_type_object->labels->name . '
  • '; echo '
  • ' . $astrology_separator . '
  • '; } $astrology_custom_tax_name = get_queried_object()->name; echo '
  • ' . $astrology_custom_tax_name . '
  • '; } else if ( is_single() ) { // If post is a custom post type $astrology_post_type = get_post_type(); // If it is a custom post type display name and link if($astrology_post_type != 'post') { $astrology_post_type_object = get_post_type_object($astrology_post_type); $astrology_post_type_archive = get_post_type_archive_link($astrology_post_type); echo '
  • ' . $astrology_post_type_object->labels->name . '
  • '; echo '
  • ' . $astrology_separator . '
  • '; } // Get post category info $astrology_category = get_the_category(); if(!empty($astrology_category)) { // Get last category post is in $astrology_last_category = end($astrology_category); // Get parent any categories and create array $astrology_get_cat_parents = rtrim(get_category_parents($astrology_last_category->term_id, true, ','),','); $astrology_cat_parents = explode(',',$astrology_get_cat_parents); // Loop through parent categories and store in variable $cat_display $astrology_cat_display = ''; foreach($astrology_cat_parents as $astrology_parents) { $astrology_cat_display .= '
  • '.$astrology_parents.'
  • '; $astrology_cat_display .= '
  • ' . $astrology_separator . '
  • '; } } // Check if the post is in a category if(!empty($astrology_last_category)) { echo $astrology_cat_display; echo '
  • ' . get_the_title() . '
  • '; // Else if post is in a custom taxonomy } else if(!empty($astrology_cat_id)) { echo '
  • ' . $cat_name . '
  • '; echo '
  • ' . $astrology_separator . '
  • '; echo '
  • ' . get_the_title() . '
  • '; } else { echo '
  • ' . get_the_title() . '
  • '; } } else if ( is_category() ) { // Category page echo '
  • ' . single_cat_title('', false) . '
  • '; } else if ( is_page() ) { // Standard page if( $post->post_parent ){ // If child page, get parents $astrology_anc = get_post_ancestors( $post->ID ); // Get parents in the right order $astrology_anc = array_reverse($astrology_anc); // Parent page loop if ( !isset( $parents ) ) $astrology_parents = null; foreach ( $astrology_anc as $astrology_ancestor ) { $astrology_parents .= '
  • ' . get_the_title($astrology_ancestor) . '
  • '; $astrology_parents .= '
  • ' . $astrology_separator . '
  • '; } // Display parent pages echo $astrology_parents; // Current page echo '
  • ' . get_the_title() . '
  • '; } else { // Just display current page if not parents echo '
  • ' . get_the_title() . '
  • '; } } else if ( is_tag() ) { // Tag page // Get tag information $astrology_term_id = get_query_var('tag_id'); $astrology_taxonomy = 'post_tag'; $astrology_args = 'include=' . $astrology_term_id; $astrology_terms = get_terms( $astrology_taxonomy, $astrology_args ); $astrology_get_term_id = $astrology_terms[0]->term_id; $astrology_get_term_slug = $astrology_terms[0]->slug; $astrology_get_term_name = $astrology_terms[0]->name; // Display the tag name echo '
  • ' . $astrology_get_term_name . '
  • '; } elseif ( is_day() ) { // Day archive // Year link echo '
  • ' . get_the_time('Y') . ' Archives
  • '; echo '
  • ' . $astrology_separator . '
  • '; // Month link echo '
  • ' . get_the_time('M') . ' Archives
  • '; echo '
  • ' . $astrology_separator . '
  • '; // Day display echo '
  • ' . get_the_time('jS') . ' ' . get_the_time('M') . ' Archives
  • '; } else if ( is_month() ) { // Month Archive // Year link echo '
  • ' . get_the_time('Y') . ' Archives
  • '; echo '
  • ' . $astrology_separator . '
  • '; // Month display echo '
  • ' . get_the_time('M') . ' Archives
  • '; } else if ( is_year() ) { // Display year archive echo '
  • ' . get_the_time('Y') . ' Archives
  • '; } else if ( is_author() ) { // Auhor archive // Get the author information global $author; $astrology_userdata = get_userdata( $author ); // Display author name echo '
  • ' . 'Author: ' . $astrology_userdata->display_name . '
  • '; } else if ( get_query_var('paged') ) { // Paginated archives echo '
  • '.__('Page','astrology') . ' ' . get_query_var('paged') . '
  • '; } else if ( is_search() ) { // Search results page echo '
  • Search results for: ' . get_search_query() . '
  • '; } elseif ( is_404() ) { // 404 page echo '
  • ' . 'Error 404' . '
  • '; } echo ''; } }