• Resolved Marcel_H

    (@marcel_h)


    Hi,

    I’ve installed the plugin and it’s doing what is suppose to do…, hide products from WooCommerce.

    However, it does more, or at least on my website…, it also hide each first topic on our BBpress forum. As keymaster I can still read them, but all the other users cannot see them anymore.

    Deactivate the plugin and everything is back to normal again.

    I would like to use the plugin as it’s working fine with WooCommerce, do you have a solution it will not mess up our BBpress forum ?

    Regards,
    Marcel

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there,

    Is this the BBPress plugin you are referring to?
    https://br.www.ads-software.com/plugins/bbpress/

    Thread Starter Marcel_H

    (@marcel_h)

    Hi Pablo,

    Yes correct

    Ok,
    I’m going to take a look at it then

    Thread Starter Marcel_H

    (@marcel_h)

    Hi Pablo,

    I can also setup a staging environment for you with a copy of our production site and give you admin rights if you like.

    Let me know

    Regards,
    Marcel

    Hi,

    Ok, thanks. I think it can help.
    In that case, please contact us via our website.

    Hi again,
    As we were previously talking, this solution works well:

    // Fixes Visibility plugin on BBPress pages making the plugin stop hiding products on BBPress queries
    add_filter('alg_wc_pvbur_can_search',function( $can_search = true, $query ){
        $post_type = $query->get( 'post_type' );
        if ( empty( $post_type ) ) {
        	return $can_search;
        } elseif (
        	is_array( $post_type ) &&
        	count( array_intersect( $post_type, array( 'topic', 'reply' ) ) ) > 0
        ) {
            return false;
        }
        return $can_search;
    },10,2);

    You can add it on your functions.php for example

    I’ll add it as resolved but if you notice anything just let me know.
    See you ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘BBpress ( first ) topics disappear’ is closed to new replies.