Support » Plugin: Ultimate Category Excluder » Problem with RSS Yandex.Turbo

  • Resolved Shmanich

    (@shmanich)


    I use the popular plugin’ Яндекс.Турбо from Flector (https://ru.wordpress.org/plugins/rss-for-yandex-turbo/) to generate RSS Yandex.Turbo and your plugin to hide posts from the main page of the blog. But I found that RSS doesn’t get hidden posts (4602 instead of 8238). The author of the Яндекс.Турбо said that the problem is not in his plugin’.

    Please fix this bug.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Shmanich

    (@shmanich)

    Upd: 4602 strings instead of 8238. 40 posts in turboversion instead of 63.

    Thread Starter Shmanich

    (@shmanich)

    3 weeks have passed. The bug was not fixed. What’s the matter?

    Thread Starter Shmanich

    (@shmanich)

    I abandoned your plugin in favor of a function for “functions.php”. I will leave here a function template that helped me solve the problem:

    
    if ( ! function_exists( 'wpspec_excude_category' ) ) :
     function wpspec_excude_category( $query ) 
     {
    	if ( ! is_admin() && $query->is_main_query() ) {
    		if ( $query->is_home() ) {
    			$query->set( 'cat', ' -ID' ); // ID рубрики со знаком минус
    		}
    	}
     }
    endif;
    add_action( 'pre_get_posts', 'wpspec_excude_category' );  // Запускаем функцию
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with RSS Yandex.Turbo’ is closed to new replies.