Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of dylancasey
    dylancasey
    Participant

    @dylancasey

    I am trying to do exactly this: change the order of the posts displayed for a topic in a forum. I understand that I can do this by setting the ‘order’ parameter to DESC in bp_has_forum_topic_posts. What is eluding me is how to properly over-ride the function on my functions.php (or bp-custom.php) so as to just change the passed arguments.

    I’ve tried adding the following to my functions.php file (an it doesn’t work):

    function my_bp_has_forum_topic_posts($args) {
    $args = 'order=DESC';
    return $args;
    }
    add_filter( 'bp_has_forum_topic_posts','my_bp_has_forum_topic_posts');

    Thanks for the help in advance.

    Avatar of dylancasey
    dylancasey
    Participant

    @dylancasey

    Sean,

    I have a very similar question to yours — I’m trying to modify the order of the tabs in the Groups navigation, rename some of them, and get rid of some of them. I, too, am running BP 1.6.1.

    I can help in one respect — you need to enclose the code in your bp-custom.php file in the php brackets:
    <?php

    YOUR CODE

    ?>

    In the meantime, I would appreciate (from anyone) help with these customizations of the BP menus. Did something change in 1.6 to affect this? Much of the help out there concerns v1.5.

    Thanks in advance,
    Dylan

Viewing 2 replies - 1 through 2 (of 2 total)