Support » Themes and Templates » Formatting Problems With Page For Category

  • Resolved ibillett


    Hello fellow wordpress users, I hope somebody can help me a small problem I am having with formatting on a page.

    Basically I created to display all of the posts in a certain category and I have done this successfully. However the problem is that I cannot figure out how to format the posts on the page like the home page.


    Category Page

    The following is the code from the category page…

     *Template Name: PageOfPosts
    <?php get_header(); ?>
    <?php get_sidebar(); ?> 
    <?php $page_query = new WP_Query('post_type=post&cat=3'); ?>
    <?php while ($page_query->have_posts()) : $page_query->the_post(); ?>
    <a>" rel="bookmark"><?php the_title(); ?></a>
    <?php the_content('Read the rest of this entry ยป'); ?>
    <?php endwhile; ?>
    <?php get_footer(); ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    My coding/html knowledge is pretty limited so it’s probably something pretty simple and easy.

    Thanks in advance for your help!

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