Поддержка WordPress Multisite 404 пагинации при одинаковых post_type and post_title

  • Здравствуйте.
    На мультиязычном сайте в mu-plugins/meltwater-cpt.php вот так создаётся новый кастомный тип.

    class Insights_CPT extends CPT_Core {
    
        /**
         * Register Custom Post Types. See documentation in CPT_Core, and in wp-includes/post.php
         */
        public function __construct() {
    
            // Register this cpt
            // First parameter should be an array with Singular, Plural, and Registered name
            parent::__construct(
                array( __( 'Insight', 'meltwater' ), __( 'Insights', 'meltwater' ), 'insights' ),
                array( 'supports' => array( 'title', 'editor', 'thumbnail', 'author' ), 'hierarchical' => true, 'publicly_queryable' => true, 'menu_icon' => 'dashicons-groups', 'has_archive' => false, 'rewrite' => array( 'slug' => 'insights' ), 'taxonomies' => array( 'post_tag', 'category' )  )
            );
    
        }
    }

    Post_type = insights. И название страницы insights.
    После того как в permalinks выбрали Post name перестала работать пагинация для копий главного сайта.
    Т.е. вот так http://site/insights — работает, а для http://uk/site/insights — при нажатии на пагинацию получаю 404 ошибку.
    Если менять post_type, то придётся все менять в БД и есть шанс что-то не поменять.
    Название страницы скорей всего захочет оставить заказчик.
    Кто-нибудь сталкивался с таким? В какую сторону ‘рыть’ — в permalinks?
    Заранее спасибо.

  • Тема «404 пагинации при одинаковых post_type and post_title» закрыта для новых ответов.