• Resolved nilay89

    (@nilay89)


    Hello

    when i use register_taxonomy() function for custom post type after this plugin give warning like below

    “The theme uses the register_taxonomy() function, which is plugin-territory functionality.”

    I have used “Twenty Thirteen” theme and above function working fine.

    please tell me how can i remove this wraning?

    I really Appreciate any help!

    https://wordpress.org/plugins/theme-check/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Don’t use the register_taxonomy function in a theme. Custom Taxonomies and Custom Post Types are not something themes are meant to create.

    Thread Starter nilay89

    (@nilay89)

    but i need custom post type and also custom Taxonomies so what i do for it also i have used “Custom Post Type UI” plugin for custom post type but it’s not given about custom Taxonomies so i have use this function

    please give me suggestion about this issue

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You cannot use Custom Post Types or Custom Taxonomies in a theme in the WordPress.org theme directory. It is not allowed, period.

    Thread Starter nilay89

    (@nilay89)

    Ok..i have set all Custom Taxonomies in wp-include/texnomy.php file and it’s work fine

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘register_taxonomy() function give a warning.’ is closed to new replies.