Skip to:

Similar discussions

  • andreiandronachi95


    Hello everyone! I’m working on a online store made with Magento, but it also have a forum created with bbPress and I have to make a modification but it’s the first time when I work with WordPress. After we enter in a discussion, we have the question, the answers and after Similar discussions, topics(topics that are in the same category with the question). Right now we are loading 10, but I need a button bellow and everytime when you press it to load another 10. In content-single-topic.php I have this custom code, that give us the number of similar topics, on the homepage of te category we have 50 discussion on page:

    $direct_parent = $post->post_parent;
    if (bbp_has_topics(
            'author' => 0,
            'show_stickies' => false,
            'order' => 'DESC',
            'post_parent' => $direct_parent,
            'post__not_in' => array($post->ID),
            'posts_per_page' => 10
    bbp_get_template_part('bbpress/loop', 'topics');

    Can someone help me to add more topics on button click with ajax or something like this?

  • You must be logged in to reply to this topic.
Skip to toolbar