Set home page to show only one post at a time.

I have set up the studio theme and have the “reading” setting to only show 1 post. This does not seem to do anything to the theme, it shows the last 5. I would like to show only 1 on the home page and several on the category link. When you click a catagory link it only shows 1. I would like to have these backwards.

site: sparerisk.com

thanks

  • Patrick
    • Support Monkey

    Hi @fellix_illium

    Welcome to the forums!

    Unfortunately, this theme does not come with option to limit the number of blog posts on the frontpage.

    However, you can edit the built-in theme setting if you are comfortable editing code. Open the following file studio/library/functions/loop-functions

    Now scroll to line 69 where you will see the following function: wpmu_blogpage_loop

    Just below that, on line 71, change this

    cat=&showposts=5&paged=$page

    to this

    cat=&showposts=1&paged=$page

    Note that will need to redo the change when you update the theme.

    This is a good suggestion though, and I’ll be sure to pass it along to the theme developer.

    Hope this helps! And thanks for being a member :slight_smile:

  • Timothy
    • Chief Pigeon

    Hello, hope you’re well.

    Just following up on some threads here and noted that we’ve not heard from you in a while.

    If you’re still looking for some assistance on this thread then please by all means reopen it or create a fresh thread for any new questions.

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.