I have created a page in my admin with this custom query:
$rows = $wpdb->get_results("SELECT * FROM ej_feedback ORDER BY createdtime ASC");
I have made it successfully paginate as required in that the right amount of posts show on first page and the right amount of pagination links show up. Awesome!
However when I click on one of the pagination links to go onto page 2, I get an admin error:
You do not have sufficient permissions to access this page
The url looks like this:
I really don't know why I'm getting this error in the admin. Is it a more general issue with the admin or is it related to using pagination in the admin area? Any help would be much appreciated.
The script works perfectly on the frontend - I just think Wordpress has a problem with the URL generated.