Skip to:
Content
Pages
Categories
Search
Top
Bottom

No of posts in stream

  • @scifikriss

    Participant

    Hi guys

    I am trying to find out how to limit the amount of posts on the stream from 20 to 15. I have searched but as I know nothing about php have found all the help really confusing. If someone could tell me in simple steps where to put the code I would be most grateful.

    Btw in a new version can we have it as an option maybe?

    Thanks in advance

    Kriss 🙂
    http://www.krissharmsworth.com
    WordPress 3.9
    BuddyPress 2.0

Viewing 4 replies - 1 through 4 (of 4 total)
  • @henrywright

    Moderator

    You can set a per_page parameter when you use the bp_has_activities() function. See here for more info: https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/

    @scifikriss

    Participant

    That is the problem I found that and didn’t understand where I had to put it as I know nothing about .php…

    After abut 2hrs of looking on the internet I finally find out how to do it and where to put it. I have only just managed to do it though…

    http://premium.wpmudev.org/forums/topic/reduce-number-of-statuses-statii-on-activity-stream

    Even though this was slightly wrong. 😀

    Kriss 🙂

    @henrywright

    Moderator

    @scifikriss glad you got it working! This is what I would have done:

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&per_page=15' ) ) {
        // code
    }

    Sorry I’m a few hours too late 🙂 – I think that should work but its untested.

    @scifikriss

    Participant

    Some of the ‘cracks’ stopped the load more on the bottom… but now I have got it working I am not touching it… LOL

    Now to get the emoticons working properly and I will be happy!

    Kriss 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No of posts in stream’ is closed to new replies.
Skip to toolbar