Need help getting blog page to show
-
I just set up this site in WordPress https://idwdesign.biz/blackburn/wordpress and everything works great except the blog page. I want the blog to show up using the same navigation and heading as the rest of the site so I made a blank blog page and under settings -> reading set the posts page to that page (called “blog”). I did not set the front page here as I customized it by editing index.php.
I also made a custom template (page_blog.php) and set the page “blog” to use that as it’s template. Here is the loop I set up inside the template to display the blog. Can someone tell me what I’m doing wrong” Nothing displays. (If I click “View” from one of the posts though, I see the post but it’s inside a messed up version of my homepage that is not using the custom template – e.g. https://idwdesign.biz/blackburn/wordpress/archives/679 )
<div class="art-content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="art-Post"> <div class="art-Post-body"> <div class="art-Post-inner art-article"> <!-- Page Title --> <h2 class="art-PostHeader-page"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"> <?php the_title(); ?> </a> </h2> <!-- Page Text --> <div class="art-PostContent"> <?php the_content(); ?> </div> <div class="cleared"></div> </div> <div class="cleared"></div> </div> </div> <?php endwhile; endif; ?> </div>
- The topic ‘Need help getting blog page to show’ is closed to new replies.