Editing a submenu link
I am trying to make edit.php to show only the author’s posts instead of showing all the posts of the blog. ( I have several authors into my blog )
If you click on the username of the author, in the edit.php you have this link: edit.php?author=1 (for author number 1)
I think I found the variable that makes it :
<?php the_author_meta(‘ID’); ?>
under the :
“><?php the_author() ?>
but i got this error :
Parse error: syntax error, unexpected T_STRING, expecting ‘)’
when i tried to add it on wp-admin/menu.php here :
$submenu[‘edit.php’] = array( __(‘Edit’), ‘edit_posts’, ‘edit.php’ );
Anyone can help me by adding correctly the
edit.php?author=<?php the_author_meta(‘ID’); ?>
into the submenu ?
- The topic ‘Editing a submenu link’ is closed to new replies.