<?php /** * The template for displaying all single posts and attachments * * @package WordPress * @subpackage Twenty_Fifteen * @since Twenty Fifteen 1.0 */ get_header(); if (have_posts()) { // Start the Loop. while (have_posts()) { the_post(); sp_get_template_part('content', 'event'); } } else { // If no content, include the "No posts found" template. get_template_part('content', 'none'); } get_footer();
* category.php (Category archives), author.php (Author archives), etc. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Fifteen * @since Twenty Fifteen 1.0 */ get_header(); ?> <?php if (have_posts()) { ?> <header class="page-header"> <h1><?php _e('Scout Sections'); ?> </h1> </header> <?php // Start the Loop. while (have_posts()) { the_post(); sp_get_template_part('content', 'section'); } // Don't need page navigation - we're showing all events } else { // If no content, include the "No posts found" template. get_template_part('content', 'none'); } get_footer();
/** * The template for displaying archive pages * * Used to display archive-type pages if nothing more specific matches a query. * For example, puts together date-based pages if no date.php file exists. * * If you'd like to further customize these archive views, you may create a * new template file for each one. For example, tag.php (Tag archives), * category.php (Category archives), author.php (Author archives), etc. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Fifteen * @since Twenty Fifteen 1.0 */ // register the recaptcha scripts get_header(); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); sp_get_template_part('content', 'contact'); } } else { // If no content, include the "No posts found" template. get_template_part('content', 'none'); } get_footer();