forked from AgriLife/AgriFlex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.php
executable file
·39 lines (27 loc) · 919 Bytes
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* The template for displaying Category Archive pages.
*
* @package AgriFlex
* @since AgriFlex 1.0
*/
?>
<?php get_header(); ?>
<div id="wrap">
<div id="content" role="main">
<?php agriflex_archive_title(); ?>
<!-- Action hook to insert content before the loop starts -->
<?php agriflex_before_loop(); ?>
<!-- Run the loop for the category page to output the posts.
If you want to overload this in a child theme then include a file
called loop-category.php and that will be used instead. -->
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'category' ); ?>
<?php endwhile; ?>
<!-- Action hook to insert content after the loop ends -->
<?php agriflex_after_loop(); ?>
<?php agriflex_content_nav( 'nav-below' ); ?>
</div><!-- #content -->
</div><!-- #wrap -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>