Skip to:
Content
Pages
Categories
Search
Top
Bottom

Personalize bbPress Recent Topics


  • tavOu
    Participant

    @tavou

    Hello All !
    I need to list the last 8 topics in this widgets, and have a link to the next page of 8 topics, and so on.It would be like a pagination for every 8 topics.
    I think the file is widgets.php in lines :

    case 'newness' :
    default :
    $topics_query = array(
    'post_type' => bbp_get_topic_post_type(),
    'post_parent' => $settings['parent_forum'],
    'posts_per_page' => (int) $settings['max_shown'],
    'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
    'ignore_sticky_posts' => true,
    'no_found_rows' => true,
    'order' => 'DESC'
    );

    I know that ‘posts_per_page’ show the last topics, in my case 8, but i dont know how to access to 8 before.

    Any help or idea please?

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

  • tavOu
    Participant

    @tavou

    can someone help me?


    Robin W
    Moderator

    @robin-w

    sorry it was the weekend, and all the helpers on here are volunteers on have jobs and a social life to lead as well 🙂 please be patient.

    The coding for this is quite complicated, but I’d suggest you start by looking at the bbp_has_topics function in

    bbpress/includes/topics/template

    this will give you a lot of the code for pagination


    tavOu
    Participant

    @tavou

    Ajam.

    someone has put pagination in a widget ?? That could help me a lot.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar