朋友们,我需要帮助。
我正在为朋友扩展Mayashop主题&;我遇到了一个问题。
创建了一个名为watchdog的自定义帖子类型,为其创建了一个名为watchdog brand的分类法。。。现在是唯一的看门狗。php模板工作得很好,但我似乎找不到适合这个术语本身的模板,其中列出了它下面的所有看门狗项。
已尝试存档监视程序。php,存档看门狗品牌。php但运气不好。。。有什么想法吗?
我还发现它甚至没有回退到归档。php。。直接进入索引。php文件
&;以下是custom\\u post的代码(&U);分类学
register_post_type(
TYPE_WATCHDOG,
array(
\'description\' => __(\'Watchdog\', \'yiw\'),
\'exclude_from_search\' => false,
\'show_ui\' => true,
\'labels\' => yiw_label( apply_filters( \'yiw_watchdog_label_singular\', __(\'Product\', \'yiw\') ), apply_filters( \'yiw_watchdog_label_plural\', __(\'Products\', \'yiw\') ), __(\'Watchdog\', \'yiw\') ),
\'supports\' => array( \'title\', \'editor\', \'thumbnail\', \'custom-fields\' ),
\'public\' => true,
\'capability_type\' => \'post\',
\'publicly_queryable\' => true,
\'rewrite\' => array( \'slug\' => apply_filters( \'yiw_watchdog_rewrite\', \'watchdog\' ), \'with_front\' => true )
)
);
flush_rewrite_rules();
register_taxonomy(\'watchdog-brand\', array( TYPE_WATCHDOG ), array(
\'hierarchical\' => true,
\'labels\' => yiw_label_tax(__(\'Brand\', \'yiw\'), __(\'Brands\', \'yiw\')),
\'show_ui\' => true,
\'show_in_nav_menus\' => true,
\'query_var\' => true,
\'rewrite\' => array( \'slug\' => \'watchdog-brand\', \'with_front\' => false )
));
flush_rewrite_rules();
提前感谢