New answers tagged

0

if(current_user_can( $capability )){ html to display appropriate page } else { header('Location: http://www.registrationorloginpage.com/');} Check the capability of the user and redirect if insufficient privileges.


0

My head like wanna explode because of this problem. However I just solved the problem. the problem is here $content = ...


0

It could still be your permalink settings, going to the Settings -> Permalink page and Saving will actually flush the rewrite rules and may just fix the problem. You can also try changing to the default structure and back again if this doesn't work, as I think this rewrites your .htaccess file. After that you may want to check your .htaccess and make sure ...


0

wp_die() See the codex for full usage details: https://codex.wordpress.org/Function_Reference/wp_die You can even include html in the message field if you want to.



Top 50 recent answers are included