• We are making a blog for our podcast, we have created a page called “episodes” and we have any episodes that are being made being posted into a category called “episodes” can anyone help me with the code for displaying these as a list on this page (Just this nothing else)
    I then assume I just paste the code into the “Page” on the WP admin as if I was filling out the about me section?
    Thanks in advance,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Why to complicate your life with something that is not easy to do = dispaying posts in a Page.
    Instead you can create a category template (e.g. category-X.php, where X is the cat ID# and edit the Loop to show only the titles.
    see https://codex.www.ads-software.com/Category_Templates

    Thread Starter mag1co

    (@mag1co)

    Thanks, il get on it

    I added the code below to page.php to get category 5 to allways show up on pages. Only problem is that <!–more–> does’nt work.

    <!– NEWSFEED –>
    <?php query_posts(‘cat=5’); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <!– <div class=”hr2″><hr /></div> –>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>

    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>
    <small><?php the_time(‘j M Y’) ?> » <?php the_category(‘, ‘) ?> <?php edit_post_link(‘ >>>REDIGERA<<<‘); ?><!–<?php the_author() ?>–></small>
    <div class=”hr”><hr /></div>

    </div>
    <?php endwhile; ?>
    <?php endif; ?>

    <!– /NEWSFEED –>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a list of posts in just one category to a PAGE’ is closed to new replies.