• Hello all,
    So I have created new php files for two different pages called ‘News’ and ‘Writings’. Each page is to show posts from specific categories. To pull these categories, I was going to use the code:
    `<?php
    $catquery = new WP_Query( ‘cat=4,16&posts_per_page=10’ );
    while($catquery->have_posts()) : $catquery->the_post();
    ?>
    <h3><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a></h3>
    <?php the_content(); ?>
    <?php endwhile; ?>`

    I want to get the format in which the posts displays to be similar to the single post page, just rather than a single post it scrolls down showing 8 posts and an ‘older posts’ button. I’m so new to PHP though so I don’t know what to change or where to insert this code?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Making specific magazine style pages for certain categories?’ is closed to new replies.