Viewing 9 replies - 1 through 9 (of 9 total)
  • If you want to have all the blog post then you must to have the blog.php then in the single.php where as the code will tell if it is pages or blogs pages.

    Thread Starter linzthephotog

    (@linzthephotog)

    So create a page-news.php (the blog post page is titled News)? Below is a blog page I have saved on my computer, will this work or do I need to change it?

    <?php get_header(); ?>
    <div class="clear"></div>
    
    </header> <!-- / END HOME SECTION  -->
    
    	<div id="content" class="site-content">
    
    <div class="container">
    
    <div class="content-left-wrap col-md-9">
    
    	<div id="primary" class="content-area">
    
    		<main id="main" class="site-main" role="main">
    
    		<?php query_posts( array( 'post_type' => 'post', 'posts_per_page' => 6, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ) ) ); ?>
    
    		<?php if ( have_posts() ) : ?>
    
    			<?php /* Start the Loop */ ?>
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', get_post_format() ); ?>
    
    			<?php endwhile; ?>
    
    			<?php zerif_paging_nav(); ?>
    
    		<?php else : ?>
    
    			<?php get_template_part( 'content', 'none' ); ?>
    
    		<?php endif; ?>
    
    		<?php wp_reset_postdata(); ?>
    
    		</main><!-- #main -->
    
    	</div><!-- #primary -->
    
    </div><!-- .content-left-wrap -->
    
    <div class="sidebar-wrap col-md-3 content-left-wrap">
    
    	<?php get_sidebar(); ?>
    
    </div><!-- .sidebar-wrap -->
    
    </div><!-- .container -->
    <?php get_footer(); ?>

    Make sure you have this kind of code the WordPress detect the Template Name in your page attributes Template where you can see the name ‘Full Width Page’

    <?php
    /**
     * Template Name: Full Width Page
     *
     * @package WordPress
     * @subpackage Twenty_Fourteen
     * @since Twenty Fourteen 1.0
     */
    Thread Starter linzthephotog

    (@linzthephotog)

    I tried that and it’s still not working.

    Thread Starter linzthephotog

    (@linzthephotog)

    So I finally figured it out. The tutorial I originally followed had both an index.php and a home.php, not sure if that’s normal. The news page is taking from the home.php file. I tried to remove it to see if I could force it to use either news.php or page-news.php and when I tried that the the page goes blank. So for now I’m just making changes to the home.php file to control the news page.

    Yeah! It is normal to have home.php and index.php

    Hey, Please could you direct me. One of the links on our homepage brings up “Page not found” I am a novice but if instructed will be able to follow. This happened some time ago, I think after an up date, so need to have this information for future fixes.

    Thanks so much for any assistance

    First, One of the links on our homepage brings up “Page not found”
    2nd, Click and get the slug (/the-page-not-found-here/) or page name
    3rd, Look if you have the page name or the slug
    4th, IF Not Exists, Create new one IF ELSE Exists, then go to page and resave the or update the page
    5th and LAST Go to your permalinks it is located at Settings > Permalinks then resave it.

    Thread Starter linzthephotog

    (@linzthephotog)

    Thanks so much mrjhon01!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Blog Page Troubles’ is closed to new replies.