How to use $wpdb (from the page template) to update the DB, without being an admin

In a PHP page template, where some backend PHP code is, how can I use the $wpdb to update the DB, without being logged in as admin. Every time I go to the template, I m constantly being redirected to the login page, if I am not logged in as admin, for some reason. I want to be able to use the $wpdb on the template, to have some DB updates in the PHP code of the template.

Read more here:: How to use $wpdb (from the page template) to update the DB, without being an admin

Leave a Reply

Your email address will not be published. Required fields are marked *