Make WordPress Themes

source: multisport/1.0.2/archive.php

Last change on this file was 72862, checked in by themedropbox, 9 years ago

New version of MultiSport - 1.0.2

File size: 1.3 KB
Line 
1<?php
2/**
3 * The template for displaying archive pages
4 *
5 * Used to display archive-type pages if nothing more specific matches a query.
6 * For example, puts together date-based pages if no date.php file exists.
7 *
8 * If you'd like to further customize these archive views, you may create a
9 * new template file for each one. For example, tag.php (Tag archives),
10 * category.php (Category archives), author.php (Author archives), etc.
11 *
12 * @subpackage MultiSport
13 * @author customizablethemes
14 * @link https://codex.wordpress.org/Template_Hierarchy
15 * @since MultiSport 1.0.0
16 *
17 */
18
19get_header(); ?>
20
21<div id="main-content-wrapper">
22        <div id="main-content">
23        <?php if ( have_posts() ) : ?>
24
25                                <?php
26                                // starts the loop
27                                while ( have_posts() ) :
28
29                                        the_post();
30
31                                        /*
32                                         * Include the post format-specific template for the content.
33                                         */
34                                        get_template_part( 'template-parts/content', get_post_format() );
35
36                                endwhile;
37
38                                the_posts_pagination( array(
39                                        'prev_next' => '',
40                                    ) );
41         
42                 else :
43
44                                // if no content is loaded, show the 'no found' template
45                                get_template_part( 'template-parts/content', 'none' );
46                       
47                  endif; ?>
48        </div><!-- #main-content -->
49
50        <?php get_sidebar(); ?>
51</div><!-- #main-content-wrapper -->
52<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.