page of posts problem (5 posts)

  1. matthewharmon102
    Posted 5 years ago #

    im running my wordprss site using the threattocreativity theme by max is now. i want several pages, and each pages needs to display posts of a certain catagory. for example, i have a page girls, then a sub page called beauty. the beauty page needs to display posts that have been put in the beauty catagory, while the girls page needs to show posts that have been put into the girls catagory (often posts will belong in 2 catagories). ive followed the guide here: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
    and used the 'page of posts' template. however this does not show anything when i try and use it. i have changed the catagory in the code and set the page to use the template. can adyone adise me what i need to do to either get the template working, or how to change the index.php file of my theme to do what i described above?
    my website is http://fameonline.22web.net

  2. vtxyzzy
    Posted 5 years ago #

    One easy way to show a category on a page, if your menu can show pages, is to use the Page Links To plugin.

    Simply install the plugin, create a blank page, and assign it the link to your category.

  3. davidandre
    Posted 5 years ago #

    query_posts('category_name=Staff Home');

    within the loop
    look at:

  4. davidandre
    Posted 5 years ago #

    it would be someting like that:`Template Name: Archives with Content

    <?php get_header(); ?>

    <div id="content" class="widecolumn">
    <?php query_posts('cat=2,6');?>

    <?php if (have_posts()) : while (have_posts()) : the_post();?>
    <div class="post">
    <h2 id="post-<?php the_ID(); ?>"><?php the_title();?></h2>
    <div class="entrytext">
    <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
    <?php endwhile; endif; ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

    <div id="main">

    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <h2>Archives by Month:</h2>

      <?php wp_get_archives('type=monthly'); ?>

    <h2>Archives by Subject:</h2>

      <?php wp_list_cats(); ?>

    <?php get_footer(); ?>

  5. matthewharmon102
    Posted 5 years ago #

    that similar to what im using now, but i cannot get any posts to show. im not sure if this is the code or the theme.

    uses the pageofposts tutorial in my origional post, but it does not show any posts.

    il have a look at the plugin and let you know how i get on

Topic Closed

This topic has been closed to new replies.

About this Topic