Hi...
- please is possible to disable write a new posts to multiple category for user (I need one post just in one category)
- In "manage posts" I need to display just posts which created loged user.
- in "write post" I need to display in related box just links, where user have permission to access.
Sorry for my english.
Thank you so much.
my reply to second problem
- In "manage posts" I need to display just posts which created loged user.
In file "wp-admin/edit-post-rows.php" make empty line on 40, and add this row:
if ( current_user_can( 'edit_post', $post->ID ) ) {
and on the end make empty line on 196, and add this:
}
that's it.
- in "write post" I need to display in related box just links, where user have permission to access.
In file wp-admin/edit-form-advanced.php change (or update)
<ul>
<?php if ($post_ID): ?>
<li><a href="edit.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Post') ?></a></li>
<?php endif; ?>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="edit.php"><?php _e('Manage All Posts') ?></a></li>
<li><a href="categories.php"><?php _e('Manage All Categories') ?></a></li>
<li><a href="edit-tags.php"><?php _e('Manage All Tags') ?></a></li>
<li><a href="edit.php?post_status=draft"><?php _e('View Drafts'); ?></a></li>
<?php do_action('post_relatedlinks_list'); ?>
</ul>
for
<ul>
<?php if ($post_ID): ?>
<?php if ( current_user_can( 'edit_posts', $comment_post_ID ) ) { ?>
<li><a href="edit.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Post') #"#?></a></li>
<?php } ?>
<?php endif; ?>
<?php if ( current_user_can( 'edit_posts' ) ) { ?>
<li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>
<li><a href="edit.php"><?php _e('Manage All Posts') ?></a></li>
<?php } ?>
<?php if( current_user_can( 'manage_categories' ) ) { ?>
<li><a href="categories.php"><?php _e('Manage All Categories') ?></a></li>
<li><a href="edit-tags.php"><?php _e('Manage All Tags') ?></a></li>
<?php } ?>
<li><a href="edit.php?post_status=draft"><?php _e('View Drafts'); ?></a></li>
<?php do_action('post_relatedlinks_list'); ?>
</ul>
- please is possible to disable write a new posts to multiple category for user (I need one post just in one category)
Not solved :(