Forums

numberposts=5 & category=10 ;_; (4 posts)

  1. ShirouJune
    Member
    Posted 5 years ago #

    how can I use this:

    http://codex.wordpress.org/Template_Tags/get_posts

    in main index page?

    I want to make 3 loops in main index page, but I want each loop to have a limit of "number posts" and be of a "particular category".

    I've tried what it says in that page but it doesn't work... so I think it might work in the "category theme page" only? Or am I doing something wrong? Or worse it can't be done?...

    Regards,

    ~June ;_;

  2. Chris_K
    Member
    Posted 5 years ago #

    Here's a link to a nifty little tutorial for that.

  3. ShirouJune
    Member
    Posted 5 years ago #

    oh my god... I... I... I love you!!! ;O;

    I've been with this like months...

    I was using things like these

    <?php if (in_category('8')) continue; ?>
    <?php if (in_category('2')) continue; ?>
    <?php if (in_category('9')) continue; ?>
    <?php if (in_category('12')) continue; ?>

    to control the categories, but couldn't do anything with the number posts...

    *cries of joy*

    Thank you very much!!! now my page is almost perfect!!!! and looks so good!!! ;O;

    thanks again!!!

  4. Chris_K
    Member
    Posted 5 years ago #

    Well shucks. You're welcome. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic