Organizing home page

Discussion in 'WordPress' started by wwe9112, Aug 21, 2010.

  1. #1
    OK, so I want to edit my home page. Instead of having one big list of all my categories showing. I want to be able to have say 10 posts from each category one below the other on my home page. How would I do this?



    Thanks
     
    wwe9112, Aug 21, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Yes, using query you can do this,

    
    <?php query_posts('[B][COLOR="sienna"]cat=25[/COLOR][/B]&[B][COLOR="sienna"]showposts=5[/COLOR][/B]'); ?>
    <ul>
    <?php while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
    <?php endwhile;?>
    </ul>
    
    Code (markup):
    Use the above code where you would like to show your post from categories.
    From the code as an example, cat=25 is the category id and showposts=5 is number of posts from the category you would like to have.

    Use the same code for your when you would like to have more categories and just change cat id.

    Hope this is what you were looking for.
    Thanks
     
    radiant_luv, Aug 21, 2010 IP
  3. wwe9112

    wwe9112 Guest

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Where would I place that? Does it go on index or archives?

    Thanks for the help.

    FOund it...

    It looks so ugly lmao I need a different theme for a news site thats basic, but has some room to play with lol.
     
    Last edited: Aug 21, 2010
    wwe9112, Aug 21, 2010 IP
  4. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #4
    I believe index.php however if there is any specific file for home (something like template-home.php) you can use.

    Good practice if you keep a backup of your file.
     
    radiant_luv, Aug 21, 2010 IP
  5. wwe9112

    wwe9112 Guest

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I found it thank you haha I decided I need to find a different theme :p... thanks for all your help
     
    wwe9112, Aug 21, 2010 IP
  6. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm trying to find time to finish off and release a free magazine theme...maybe you can test it for me :p I agree though, even after the changes we made the other night your theme is crap!
     
    kiramanic, Aug 22, 2010 IP
  7. wwe9112

    wwe9112 Guest

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Sorry about my theme being crap I'm having a hard time finding one to fit my needs lmao ill give yours a shot :).. haha thanx.
     
    wwe9112, Aug 22, 2010 IP