Taxonomy Images
[resolved] Lack permission to edit term error (3 posts)

  1. bcorcoran
    Posted 3 years ago #

    As an administrator, I am trying to add images to a taxonomy category and when I click the button to attach the image, it gives me an error saying I don't have permission to edit the term.


  2. bcorcoran
    Posted 3 years ago #

    Ok, so the problem is actually if you don't define the capabilities array in register_taxonomy. This should be more clear in your plugin details because most people don't define taxonomies with the capabilities array.

    Even more confusing is that as an admin you can manage/edit/delete the taxonomy terms, but with your plugin, it says you can't edit them.

    To make sure you don't run into this error, at a minimum add this to your register_taxonomy call:

    capabilities => array('edit_terms')

  3. Devon
    Posted 3 years ago #

    I've tried what is described above but can't seem to get it to go through still.

    register_taxonomy( 'Clients',
    			array( 'work' ),
    				'hierarchical' => true,
    				'label' => 'Clients',
    				'singular_label' => 'Client',
    				'rewrite' => true,
    				'capabilities' => array
    					'edit_terms' => 'edit_divisions'

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Taxonomy Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic