WordPress.org

Ready to get started?Download WordPress

Forums

Network Latest Posts
[resolved] More columns and max. post limit (2 posts)

  1. uros_m
    Member
    Posted 1 year ago #

    Hi,

    I would like to create four columns instead of two and limit the total number of posts shown. So for example I would like to show 1 post from each blog but not more than 12 in total and put those in 4 columns, 3 posts each.

    I've been looking at the source files but I fall short of finding a solution. I'm afraid it's a bit too hardcore for me to figure it out on my own. But give me a few hints and I'm sure I can manage.

    Cheers,

    UroŇ°

    http://wordpress.org/extend/plugins/network-latest-posts/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Hello UroŇ°,

    You don't need to touch the code for that, just play with NLPosts parameters and CSS to accomplish what you want.

    To limit the total number of posts you must use the sorting parameters: 1 post from each blog, no more than 12 in total looks like this:

    [nlposts number_posts=1 sort_by_date=true sorting_limit=12]

    It will pull 1 post from all blogs, limiting to the first 12 blogs with most recent content.

    Regarding your question about the columns, it is easily accomplished using CSS, just create a custom CSS file, upload it to your active theme directory and use it, here is an example with 3 columns I just created to point you in the right direction: CSS Columns

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic