I was asked to fix a wordpress based site and I don't get what's going on with it.
The (custom) theme has a page-home.php
that is the Home page.
Whatever edits I make to this file, if I refresh the page logged in wp-admin (so, I'm an admin), the change is seen, but logged out (anonymous - as the site is intended to be used) it's still the old content.
I did the following:
- downloaded all site locally, opened all
*.php
files, and searched for duplicate similar homepage sites, just in case a different one is served for anonymous browsing - no duplicate files - searched for keywords like
is_admin
,is_user_logged_in
, didn't find such logic - went through this post to get what the order of execution is in WP. Helped a bit but didn't help me solve the problem
- hardcoded things in
header.php
file -> result only displayed while logged in.
I don't know how else to find out why I keep getting old page.
I assume wordpress is rendering some pages, but why doesn't use the latest changes if anonymous? How to fix this?