• Resolved Lolo Marchal

    (@chipweb)


    Hello.

    Is there any way that even if we mark a post as hidden, it will be hidden in the front-end search, but then it will not be hidden in the backoffice for admin users?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would also like to know the answer to this.

    • This reply was modified 1 year, 3 months ago by susisheridan.
    Plugin Author quadlayers

    (@quadlayers)

    Hello @chipweb and @susisheridan,

    Currently, there are no options to get this done.

    We’re working on new features for the free version and a new premium version of the plugin.

    Plugin Author quadlayers

    (@quadlayers)

    You can customize this behavouir changing this filter

    public function search_filter( $query ) {
    
    $exclude =
    
    ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
    
    && $query->is_search
    
    && ! $this->is_bbpress( $query );
    
    $exclude = apply_filters( 'searchexclude_filter_search', $exclude, $query );
    
    if ( $exclude ) {
    
    $query->set( 'post__not_in', array_merge( array(), $this->get_excluded() ) );
    
    }
    
    return $query;
    
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Any way to not hide posts in the admin backofficce search?’ is closed to new replies.