gplana (@gplana)

Forum Replies Created

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

  • gplana
    Participant

    @gplana

    Thank you for your answer. I tryied what you suggested but same result.
    Maybe is due to an incompatibility with my theme?

    My main forum customized page have this to show all topics:

    	<?php if ( bbp_has_topics($args) ) : ?>
    		<?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
    		<?php bbp_get_template_part( 'bbpress/loop',       'topics'    ); ?>
    		<?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
    	<?php else : ?>
    		<?php bbp_get_template_part( 'bbpress/feedback',   'no-topics' ); ?>
    	<?php endif; ?>
    

    I make a print_r($args) and it has an empty array. I also tryied to remove $args argument from bbp_has_topics but same result (no topics message displayed).
    Maybe in bbPress 2.4 bbp_has_topics() is not the right function to start a loop?

    I can see forum topics from wp-admin, so I’m sure topics are there.

    Thank you.


    gplana
    Participant

    @gplana

    Hadn’t anyone experience this? Does anywant know how to solve it ?

    Thank you.


    gplana
    Participant

    @gplana

    Of course. Sorry for didn’t provide it.

    This is the link: http://doslekqwod23ay.opencosmetic.com/forum/
    When asked by user and password use dcr as user and pwdpwd as password.

    Then you can do the login there: http://doslekqwod23ay.opencosmetic.com/login/
    using user sms@gapla.cat and password sms

    After this, you can return to http://doslekqwod23ay.opencosmetic.com/forum/ and see my custom page where there is an upper box showing information about community leaders, but this information doesn’t appear if you are not logged in and it should. I think it’s because the page is not called.

    Thank you.


    gplana
    Participant

    @gplana

    I have tried and it works very well. Just following the steps on the link above and also using this to make the filter:

    $args = array(

    ‘tax_query’ => array(

    array(

    ‘taxonomy’ => ‘your_taxonomy_name_here’,

    ‘field’ => ‘id’,

    ‘terms’ => $id_of_your_taxonomy_term

    )

    )

    );

    $query = new WP_Query( $args );


    gplana
    Participant

    @gplana

    After some tries, I think it’s not possible, but I have solved this by adding a custom taxonomy.


    gplana
    Participant

    @gplana

    I have also renamed wp-content/plugins/bbpress/bbp-themes/bbp-twentyten/single_topic.php and the page still loads, so maybe it’s not this the correct file for this ?


    gplana
    Participant

    @gplana

    Hi again, John.

    I’m answering myself :)

    I followed your clue and found this link: https://codex.wordpress.org/Taxonomies which explains very well what to do for creating a ‘forum_categories’ taxonomy.

    Then I think I can just call bb_has_topics from my template with this parameter:

    array(‘forum_categories’ =>

    array(‘searched_category1’, ‘searched_category2, ….)

    )

    I will try and let you know.

    Thanks a lot !!


    gplana
    Participant

    @gplana

    Thanks a lot for your answer, John.

    I agree, I think I will use forums (and forums categories) for canonical place, and I will try the WordPress categories taxonomy to do what I need. However, I have two questions:

    1. Should I modify the core of bbPress for archieving this ? If I should, I don’t really like it because if a new version of bbPress is published then I won’t be able to upgrade easyly.

    2. Does it already exist a plugin or something similar where this (using WordPress categories) is already implemented ?

    Many thanks.

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