Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Problem with tags for pages #77332
     jliglesias
    Participant

    Hi there,

    Abe, this code doesn’t work right with the bbpress plugin and posts tags, i.e. : the widget for the list of forums and the recent posts doesn’t display correctly. Maybe it is because the post_type filter is ‘any’, but I don’t know!.

    I have now changed your code, like this:

    COPY CODE
    if ( is_tag() && empty($query->query_vars['suppress_filters']) && $query->is_main_query() ) {
                /*$query->set( 'post_type', array('post', 'portfolio', 'product'));*/
                $query->set('post_type', 'any');
                return $query;
    }

    It’s working fine for me!, is this correct?

    Thank you, everyone.

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?