Forums

How can I list a specific number of posts (2 posts)

  1. kenyonj
    Member
    Posted 9 months ago #

    I have pages that I want to list posts from a category in three columns.
    I have the columns working with a short code plugin.
    But... how can I list posts 1-10 in column 1, 11-20 in column two and so on?
    The only way I have found to list the posts from certain category is through 1 long list.

    Appreciate any help I can get, I have been searching for a solution forever.

    p.s. Ideally this will be a plugin solution. Also, ideally, it would be dynamic, meaning that if there are 30 posts then 1-10 would be in column 1, but, if there are 60 posts then 1-20 would be in column 1.

  2. picandocodigo
    Member
    Posted 7 months ago #

    Check out List Category Posts:
    http://wordpress.org/extend/plugins/list-category-posts/
    You can set an offset and number of posts for each column.

    So the shortcode would be:
    Column 1:
    [catlist id=1 offset=0 numberposts=10]
    Column 2:
    [catlist id=1 offset=10 numberposts=10]
    Column 3:
    [catlist id=1 offset=20 numberposts=10]

    For a dynamic solution, some coding would be necessary...

Reply

You must log in to post.

About this Topic