create a category news template
This commit is contained in:
parent
4e23e4f7f7
commit
2b5b719bf5
|
@ -49,40 +49,6 @@ get_header(); ?>
|
|||
<?php // end of the loop ?>
|
||||
<?php //pagination here ?>
|
||||
<?php wp_reset_postdata(); ?>
|
||||
<?php elseif :?>
|
||||
<div class="main-container">
|
||||
<div class="main-grid">
|
||||
<main class="main-content">
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<?php /* Start the Loop */ ?>
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<?php get_template_part( 'template-parts/content', get_post_format() ); ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php else : ?>
|
||||
<?php get_template_part( 'template-parts/content', 'none' ); ?>
|
||||
|
||||
<?php endif; // End have_posts() check. ?>
|
||||
|
||||
<?php /* Display navigation to next/previous pages when applicable */ ?>
|
||||
<?php
|
||||
if ( function_exists( 'foundationpress_pagination' ) ) :
|
||||
foundationpress_pagination();
|
||||
elseif ( is_paged() ) :
|
||||
?>
|
||||
<nav id="post-nav">
|
||||
<div class="post-previous"><?php next_posts_link( __( '← Older posts', 'foundationpress' ) ); ?></div>
|
||||
<div class="post-next"><?php previous_posts_link( __( 'Newer posts →', 'foundationpress' ) ); ?></div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
</main>
|
||||
<?php //get_sidebar(); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else : ?>
|
||||
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
|
||||
<?php endif; ?>
|
||||
|
@ -90,7 +56,6 @@ get_header(); ?>
|
|||
</main>
|
||||
<aside>
|
||||
<nav>
|
||||
<a href="#" class="button hollow">see more news</a>
|
||||
</nav>
|
||||
</aside>
|
||||
</section>
|
|
@ -49,7 +49,7 @@
|
|||
</main>
|
||||
<aside>
|
||||
<nav>
|
||||
<a href="#" class="button hollow">see more news</a>
|
||||
<!--a href="" class="button hollow">see more news</a-->
|
||||
</nav>
|
||||
</aside>
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue