コード例 #1
0
ファイル: search.php プロジェクト: TheAggressive/aggression
do_action('aggression_before_main');
?>
	
		<main id="main" class="site-main" role="main">

			<?php 
do_action('aggression_before_loop');
?>

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<h1 class="page-title <?php 
    aggression_page_title_visibility();
    ?>
"><?php 
    printf(esc_html__('Search Results for: %s', 'aggression'), '<span>' . get_search_query() . '</span>');
    ?>
</h1>
			</header><!-- .page-header -->

			<?php 
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        do_action('aggression_before_entry');
        /**
         * Run the loop for the search to output the results.
         * If you want to overload this in a child theme then include a file
コード例 #2
0
ファイル: archive.php プロジェクト: TheAggressive/aggression
do_action('aggression_before_main');
?>

		<main id="main" class="site-main" role="main">

			<?php 
do_action('aggression_before_loop');
?>

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<?php 
    the_archive_title('<h1 class="page-title ' . aggression_page_title_visibility() . '">', '</h1>');
    the_archive_description('<div class="taxonomy-description">', '</div>');
    ?>
			</header><!-- .page-header -->

			<?php 
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        do_action('aggression_before_entry');
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('template-parts/content', get_post_format());