Posts not showing up on blog posts page
-
I want to set up a static front page so I changed my posts page to “blog” but when I go to the URL I get the following error message
Index of /blog
* Parent Directory
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at theinternetmarketingresourceguide.com Port 80
The URL is https://theinternetmarketingresourceguide.com/blog/
I have published posts. WordPress is installed in the root directory. I have not changed the front page to the static “home” page yet because I have not designed the page yet. I have changed the permalink structure to /blog/%postname%/
The page.php code is:
<?php get_header(); ?> <div id="content"> <div class="entry"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> </div> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
The index.php code is:
<?php get_header(); ?> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="entry"> <div id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> <!-- by <?php the_author() ?> --> <?php the_content('Read the rest of this entry »'); ?> <p class="postmetadata">Posted in <span class="cty"><?php the_category(', ') ?></span> | <?php edit_post_link('Edit', '', ' | '); ?> <span class="cmt"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></span></p> </div></div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('<span class="prev"> Previous Entries</span>') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries <span class="next"> </span>') ?></div> </div> <?php else : ?> <div class="entry"> <h2>Not Found</h2> Sorry, but you are looking for something that isn't here. </div> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Any ideas on how to get posts to show up on the posts page?
- The topic ‘Posts not showing up on blog posts page’ is closed to new replies.