Hi I want to create a simple login code to redirect each user to his own profile page.
I'm using a page "CleanPage" as a template for my php code.
I tried header Location
and wp_redirect
but both shows this error:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/general-template.php:1076) in /var/www/html/wp-content/themes/sydney/CleanPage.php on line 43
I wanted simple redirection like this:
header("Location: auth_customer.php?id=$userid");
Any help please?