admin管理员组文章数量:1335134
I have custom taxonomy within my WordPress installation that I created with a WordPress Plugin called Pods.
For various reasons, I need to set the registering of the loop from "public" to "false" to prevent post looping.
So, can anyone please point me in the right direction to do this?
My Custom Taxonomy is called "Countries" and it lists Countries!
Thanks, all pointers appreciated so that I can figure this one out.
I understand that to register custom taxonomy w/out a plugin you could so something like this:
<?php
add_action( 'init', 'create_book_tax' );
function create_book_tax() {
register_taxonomy(
'genre',
'book',
array(
'label' => __( 'Genre' ),
'rewrite' => array( 'slug' => 'genre' ),
'hierarchical' => true,
)
);
}
?>
So I guess my question is: is there a way to overwrite the settings from "public" to "false' whilst keeping the URL integrity?
What I am trying to achieve is to keep the public URL but remove the loop from my Custom Taxonomy.
I hope that makes sense
本文标签: customizationCan I overwrite custom taxonomy FROM quotpublicquot TO quotfalsequot
版权声明:本文标题:customization - Can I overwrite custom taxonomy FROM "public" TO "false" 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742268276a2443820.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论