Skip to:
Content
Pages
Categories
Search
Top
Bottom

Only pin post is showing


  • en10
    Participant

    @en10

    Hello,

    I installed bbPress, maybe 5 months ago. I imported from phpBB.
    After some trouble with this import, the installation was ok.

    But now, with wordpress 4.7.2 (maybe before I’m not sure), I can see my forums but not replies and topics.
    About topics, I can see when it’s “pin topics” but there is not reply inside.

    Everything is ok in the admin panel of WP, all posts, topics and forums are here.

    I tried to remove “WP-super cache” and use the tool “bbp-repair” but nothing change.

    Could someone help me?

    Best Regards

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

  • Robin W
    Moderator

    @robin-w

    link to your site needed


    en10
    Participant

    @en10

    OK, I found the code who make this issue.

    function SearchFilter($query) {
        if ( $query->is_search && !is_woocommerce() && !is_admin()) {
            $query->set( 'post_type', 'post,page' );
        }
        if ( function_exists( 'is_woocommerce' ) ) : 
            if ( $query->is_search && is_woocommerce() && !is_admin()) {
                $query->set( 'post_type', 'product' );
            }
        endif;
        return $query;
     }
    add_filter('pre_get_posts','SearchFilter');

    I put this function in functions.php because without that I can’t search on my blog AND Woocommerce with the plugin Releanssi).

    But what the problem with this function?

    EDIT: I found a topic and the fix of @robin-w

    Topics not appearing in forum

    I will try this fix very soon.


    en10
    Participant

    @en10

    Fixed.
    Thank you for your plugin @robin-w
    >> http://www.rewweb.co.uk/bbpress-wp4-fix/


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !!

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