delarge
9/2/2018 - 6:29 PM

archive titles

Display various titles on archive


			<?php /* If this is a category archive */ if (is_category()) { ?>
				<h1><?php single_cat_title(); ?></h1>

			<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
				<h1><?php single_tag_title(); ?></h1>

			<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
				<h1> <?php the_time('F jS, Y'); ?></h1>

			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
				<h1> <?php the_time('F, Y'); ?></h1>

			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
				<h1> <?php the_time('Y'); ?></h1>

        <?php /* If this is a post type archive */ } elseif (is_post_type_archive()) { ?>
          <h1> <?php post_type_archive_title(); ?></h1>

          <?php /* If this is a post type archive */ } elseif (is_tax()) { ?>
          <?php
            if ( is_taxonomy_assigned_to_post_type( 'music' ) ) { ?>




        <h1><?php single_term_title(); ?></h1>






<?php } ?>

			<?php /* If this is an author archive */ } elseif (is_author()) { ?>
				<h1>Author</h1>

			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
				<h1>Archives</h1>

			<?php } ?>