You do not have sufficient permissions to access this page. This is the error i am facing while making my own plugin.Actually, i want to link to another page.
Wordpress version is 3.8.1 I made a plugin that shows the following display(the index page of my crud plugin)
I want the Add New link to redirect to other create.php(which is in the same folder as crud.php the index php file).But it says You do not have sufficient permissions to access this page. Is it correct the way i link to create.php file inside my plugin folder? I tried to read abt cross page call in wordpress but no luck. I tried different plugin video tutorial every video ends in the same page. I want to be redirected to the create.php page with the same sidebar and topbar in crud page. And of course i have nicely embeded the html code and php code it's just i did not know the way to show them nicely here. And my folder struncture is as follows
The code is as follows
add_action('admin_menu','crudindex');
function crudindex(){
add_options_page('Crud Dashboard', 'Crudboard', 'manage_options', 'crud', 'crudboard');
}
function crudboard()
{
<div class="wrap">
<h2>
Motors
<a class="add_new-h2" href="<?php bloginfo('url');?>/wp-admin/options-general.php?page=create">Add New</a>
</h2>
<table class="wp-list-table widefat fixed pages">
</table>
}
I know this is a repeat question.I post it beacause i didn't find the correct answer. Thanks