• Hi,

    I had a theme made years ago and it was build without a blog page..
    So I am trying to do it myself.
    So far, I have created my single.php page 3 post articles and a page called Blog.
    In the Reading Settings, I did set the Front page displays to static with my choosen page and then select my blog page for the Posts page.
    When I go to mysite.com/blog I have none of my posts showing. “Blog” shows same content as “home”.

    Could anyone provide some assistance?

    Thank you in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, @trinitech. It might be easier for someone to tell what might be going wrong here if we had a real URL to the site in question.

    But it sounds to me as though your theme may have an index.php file, but not a page.php file (see the Template Hierarchy for Home Page and Front Page display to understand what I’m getting at here).

    Thread Starter Trinitech

    (@trinitech)

    Hi @girlieworks,

    I do have a page.php but your comment has pushed me to the rigth direction.
    I add the following code to my index.php and I could see all my article

    <div id="content"><!--start content-->
    				<?php if (have_posts()) : ?>
    					<?php while (have_posts()) : the_post(); ?>
    						<div class="entry"><!--start entry--><br />
    						<!--<?php echo '<h1>'.get_the_title($post->ID).'</h1>'; ?>--> <!-- doesn't have hyperlink -->
    						<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    						<?php echo the_date('m-d-Y', '<p><i>', '</i></p>'); ?>
    						<?php the_content('more...'); ?>
    						</div><!--//end .entry-->
    					<?php endwhile; endif; ?>
    			</div><!--//end #content-->

    The problem that I have now is that all the article are showing in full instead of showing the read more link.

    Another issue is that in the breadcrum, i have Home > Blog > News > post 1
    When I click on news, I just get a blank page

    Could you please assist me a bit more?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blog articles not displaying on blog page’ is closed to new replies.