WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] More then One Post Page Allowed? (11 posts)

  1. melstan1
    Member
    Posted 4 years ago #

    Hi! I need more then one posting page. I've seen several threads like this, but not specifically for what I want to do:

    I want my home page to be my main post page (as it is now).
    I need a second posting page on the same site, separate from the main page.

    The reason for this is: Blog posts go on the landing page.
    Footer content will be Multimedia content, and I want to keep a history of what was posted in the footer and when, separate from the main page content.

    As a note: I'm using Thesis. I know that can sometimes make a difference, but I thought I would start here.

    oh ps - my blog is http://www.theinnocentabroad.com if anyone needs to see it to answer.

  2. Gisha James
    Member
    Posted 4 years ago #

    Create a category, called multimedia.

    Exclude the category multimedia from appearing in home page.

    Fill the footer widget with posts from multimedia category.

  3. melstan1
    Member
    Posted 4 years ago #

    ok excellent. That part is complete, and I can see why it's the popular option for exclusion. Thanks for the suggestion.

    However, I definitely need more then one post page. It's not acceptable for my purposes to keep updating one long static page. Is it at all possible to add more then one post page to WP, or will I need to install a subdomain? Any other suggestions?

  4. nathan12343
    Member
    Posted 4 years ago #

    You could create a page template and include only specific categories for that page. I do this quite a lot.

    <?php
    /*
    Template Name: Multimedia page
    */
    ?>
    
    <?php get_header(); ?>
    <div id="content">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post">
    <?php the_content() // lets you add some content in the wp admin panel?>
    
    <?php
     $postslist = get_posts('category=YOURCATID');
     foreach ($postslist as $post) {
     setup_postdata($post);
     ?> 
    
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    <span class="date"><?php the_time('l, F j, Y'); ?> <?php the_time('G:i'); ?></span>
    
    <div class="content">
    <?php the_excerpt('Read the rest of this entry &raquo;'); ?>
    </div>
    
    <div class="tags"><?php the_tags('Tags: ', ', ', ''); ?></div>
    <div class="edit"><?php edit_post_link('Edit', '', ' | '); ?></div>
    <?php } ?>
    
    </div> <!-- ends post -->
    </div> <!-- ends content -->
    
    <?php endwhile; endif; ?>
    <?php get_footer(); ?>

    I've deleted some of my code that won't be relevant to you - hope I kept the right closes in ! You obviously need to change YOURCATID to the ID. You can also limit the number of posts, change the order etc etc etc, Then save this page as multimedia.php or similar then select Multimedia page as the template when editing the page.

    Hope this helps.

  5. melstan1
    Member
    Posted 4 years ago #

    Hi Nathan,

    Thanks so much for the suggestion. I will give it a shot later on today. Looks like a good suggestion, too! :-)

  6. melstan1
    Member
    Posted 4 years ago #

    Hi Nathan,

    I'm coding on a part time basis so it took me awhile to figure out how to implement your suggestion. But it worked like a charm, that's exactly what I wanted to do. Thanks so much for the suggestion. I am uberhappy!

  7. nathan12343
    Member
    Posted 4 years ago #

    Just glad I could help out - makes a change from me asking for help from others!

  8. melstan1
    Member
    Posted 4 years ago #

    Hey Nathan,

    if you happen upon this thread again, I was wondering how you would feel about modding one of my template pages to make that code fit. I changed the theme and the code doesn't work anymore. Well, it does, but it doesn't take the style of the page. I end up without a column to place content in and the text turns blue.

    If you (or indeed anyone) is up for the job, please let me know. you can have a look at my blog at htpp://www.theinnocentabroad.com

  9. nathan12343
    Member
    Posted 4 years ago #

    I'll be happy to take a look for you. Send me a link with the page in it and we can go from there.

  10. melstan1
    Member
    Posted 4 years ago #

    hey Nathan

    Thaks for you time. Much appreciated. you can view http://www.theinnocentabroad.com/contact/ for an example of how your code looks on a page.

    What I am after is just a wide, say 800 pixels centered column, with the header and footer, but no sidebar. All the colors as defined in the stylesheet should match.

    Oh wow I hope that's not too much. I'm a code idiot. :p

  11. nathan12343
    Member
    Posted 4 years ago #

    Hi Melissa,

    No problem. It would be better if you could zip the template file that you are using and another (probably index.php). But as a bit of a guess.... if you replace <div id="content"> with <div id="centercol" class="grid_14"> it should at least start to look like the other pages...

Topic Closed

This topic has been closed to new replies.

About this Topic