WordPress.org

Ready to get started?Download WordPress

Forums

Seems possible, but is it? Hmm (3 posts)

  1. pstar
    Member
    Posted 9 years ago #

    I'm messing around with 1.5 but I'm not sure if what I'm looking to do is possible. I would like to set up wp on my homepage. Then extend the install so each tab located on my menu is a blog like landing page. Each tab is a different topic. For example, I would have a tab for baseball (domain.com/baseball), football, tennis, golf, hockey, surfing, boxing. All tab pages would have the same theme design but each would have different content. Basically, if I wanted to post something I would write it up, select the category, then publish to the specified tab rather than everything being displayed on the homepage. Is there anyone who understands what I'm looking to do? If so, please explain cause this is really getting to me. Thanks

  2. jalenack
    Member
    Posted 9 years ago #

    sure, easy enough. In the index.php of your theme folder, wrap all of the post info in a in_category() conditional:

    <?php while (have_posts()) : the_post(); ?>
    <?php if (in_category(
    2)) { ?>

    ...template tags here, like <?php the_content(); ?>

    <?php } endwhile; ?>

    Where '2' is the ID of the category you want to display on the home page. You can find that out in your admin panel > Manage > Categories

    The individual category stuff is pretty straightforward. Just use a permalink category structure of '%category%' ... You can edit permalink structure at Admin Panel > Options > Permalinks

    If this all went way over your head, it's totally understandable. We can walk you through it if you don't understand. Hope this helps :)

  3. pstar
    Member
    Posted 9 years ago #

    do you know of any sites or blogs config in this manner?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.