WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Adding posts per category in seperate DIV's (2 posts)

  1. wickedpenguin
    Member
    Posted 2 years ago #

    Hi,

    I have three boxes on my homepage, each has its on Div and I would like to show posts for separate categories in each #homebox.

    Eg.. #homebox1 would show posts from cat "1", homebox2 posts from cat "2" etc...

    Could someone please point me in the right direction.

    Here is my current code which displays all posts in the boxes.

    <div id="homebox3">

    <?php get_template_part( 'loop', 'index' );?>

    </div><!-- #homebox3 -->

    Thanks in advance

  2. wickedpenguin
    Member
    Posted 2 years ago #

    Perhaps I should be using get_post or query_post or wp_query

    Anyone?

    [duplicate: http://wordpress.org/support/topic/homepage-boxes-different-post-per-box?replies=2 ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.