Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: editors unable to edit media metadata #2902
    moranme
    Participant

    Never mind I got it to work! I put that code in functions.php and that fixed it. Thank you so much for the fast response!!

    in reply to: editors unable to edit media metadata #2900
    moranme
    Participant

    Thanks. Does that code go in functions.php?

    And would it be this, exactly?

    add_filter('ure_restrict_edit_post_type', 'exclude_posts_from_edit_restrictions');
    function exclude_posts_from_edit_restrictions($post_type) {
      $restrict_it = true;
      if (current_user_can('editor')) {
          if ($post_type=='attachment') {
    	        $restrict_it = false;
          }
      }
      return $restrict_it;
    }
    in reply to: editors unable to edit media metadata #2891
    moranme
    Participant

    Hi Vladimir,

    Yes, I narrowed down the problem further. It seems to be specific to the page restriction. All of my editors are restricted to be able to edit just one page. With this setting, they can edit their one page and upload new media (but unable to edit the metadata, which is my problem). When I turn this setting off (allowing them to edit any page), then the problem goes away and they can edit metadata.

    To restrict their editing to just one page, I go to each user profile, and in the Posts/Pages/Custom Post Types Editor Restrictions section, I click the radio button for “Allow” and then enter the page ID number in the field called “with post ID (comma separated).”

Viewing 3 posts - 1 through 3 (of 3 total)