Why do all links on my WordPress site show me the homepage?
It looks like you’ve constructed an URL relative to the template PHP you’re rendering, i.e. this code is in wp-content/themes/mycustom/index.php you want to load wp-content/themes/mycustom/admin/dashboard.php => relative URL is admin/dashboard.php? That’s not correct. URLs are relative to the URL the user is currently on in their browser, which may be /, or /category/post-slug, or /year/month/post-slug, … Read more