I'm trying to make a shortcut in navigation that will take user to one certain post. So far I'm using
add_action('admin_menu', 'add_custom_menu_position');
function add_custom_menu_position() {
add_menu_page('FeaturedJobs', 'Featured Jobs', 'edit_posts', 'edit.php?post=706&action=edit',18);
}
The item does show up in the admin menu, but every time I try to use it, it inserts admin? as a part of the link and I get You do not have sufficient permissions to access this page. error.
The final link looks like this: http://website_url/wp-admin/admin.php?page=post.php?post=706&action=edit
I know that I have enough capabilities to edit it, because I'm on an admin account and also once I use a regular edit link (http://website_url/wp-admin/post.php?post=706&action=edit), it works fine. I'm rather sure the problem is there because the link I'm trying to reach is wrong, but I can't find a way to link to it in any other way.
I'll be grateful for any hints, E.