geoffmuskett
Member
Posted 1 year ago #
Hi all,
It's not a major problem, but for some reason I'm getting different outputs from the body_class function between my localhost (XAMPP) and online. For example the same page is 'page-id-14' on localhost and 'page-id-12' online. I'm using the Starkers theme, and the page is http://www.babelfishlanguageschool.com/courses/
I guess it's a different PHP configuration or something. Has anyone had this before and know of a fix?
For the minute I have two style sheets and its a little awkward.
Thanks,
Geoff
Are you using exactly the same database between the two sites?
The difference is that on your XAMPP install, the Page in question has an ID of 14, while on your webhost, the Page in question has an ID of 12.
The $page->ID comes from the database table.
For example the same page is 'page-id-14' on localhost and 'page-id-12' online.
That makes perfect sense to me. You simply created the pages in a different order on your local server compared to your remote server.
geoffmuskett
Member
Posted 1 year ago #
Of course! [slaps forehead]
Thanks for your help guys!