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