• Hi there,

    I was hoping someone would be able to have a look at my post page, I’m currently fixing.
    Is there a way to make the posts show up like the rest of the site? or would that involve custom post type code?

    the website is: Penstrokes Blog

Viewing 3 replies - 1 through 3 (of 3 total)
  • WordPress list posts by the following code, please try this in your post page:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       <div class="post">
         <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to    <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
         <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
         <div class="entry">
           <?php the_content(); ?>
         </div>
    
         <p class="postmetadata">Posted in <?php the_category(', '); ?></p>
       </div> <!-- closes the post div -->
     <?php endwhile; else: ?>
        <p>Sorry, no posts matched your criteria.</p>
     <?php endif; ?>

    If you want to customize your theme then please go through the link: https://codex.www.ads-software.com/Theme_Development

    Thread Starter P

    (@inkedkoi)

    Sorry for the late reply, but here’s what happening.

    When I put that code in the functions.php and then update. The page comes up, “No page found, apologizes”

    So, I have to take it back off and then update otherwise the entire site has that error.

    Any other ideas?

    Thanks

    The given code was for your index page or any particular page template to list all posts of your site. You do not need to use that in function file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Page Formatting’ is closed to new replies.