WP - 与主题文件冲突

时间:2014-11-19 12:45:23

标签: wordpress themes

我正在开发一个主题并使用两种帖子类型。新闻的博客和新闻帖子(自定义类型)的默认帖子。当我打开新闻 - 它使用正确的主题文件,但标记博客的导航栏菜单项。博客正在使用home.php(一般帖子的默认值)。新闻正在使用' category-news.php'。任何想法为什么会发生冲突?

更新

WP_Query Object ( [query_vars] => Array ( [page] => 0 [news] => blog-2 [post_type] => news [name] => blog-2 [error] => [m] => [p] => 0 [post_parent] => [subpost] => [subpost_id] => [attachment] => [attachment_id] => 0 [static] => [pagename] => [page_id] => 0 [second] => [minute] => [hour] => [day] => 0 [monthnum] => 0 [year] => 0 [w] => 0 [category_name] => [tag] => [cat] => [tag_id] => [author] => [author_name] => [feed] => [tb] => [paged] => 0 [comments_popup] => [meta_key] => [meta_value] => [preview] => [s] => [sentence] => [fields] => [menu_order] => [category__in] => Array ( )

        [category__not_in] => Array
            (
            )

        [category__and] => Array
            (
            )

        [post__in] => Array
            (
            )

        [post__not_in] => Array
            (
            )

        [tag__in] => Array
            (
            )

        [tag__not_in] => Array
            (
            )

        [tag__and] => Array
            (
            )

        [tag_slug__in] => Array
            (
            )

        [tag_slug__and] => Array
            (
            )

        [post_parent__in] => Array
            (
            )

        [post_parent__not_in] => Array
            (
            )

        [author__in] => Array
            (
            )

        [author__not_in] => Array
            (

[category__not_in] => Array ( ) [category__and] => Array ( ) [post__in] => Array ( ) [post__not_in] => Array ( ) [tag__in] => Array ( ) [tag__not_in] => Array ( ) [tag__and] => Array ( ) [tag_slug__in] => Array ( ) [tag_slug__and] => Array ( ) [post_parent__in] => Array ( ) [post_parent__not_in] => Array ( ) [author__in] => Array ( ) [author__not_in] => Array (

0 个答案:

没有答案