I've been trying to set a page called "archives.php" on my site to display all older news, however, I run into errors.
I copy the code from archives.php on the default theme and paste it into my editor - name it "archives.php" and when I go to preview it I get this error:
Fatal error: Unknown function: get_header() in /home/minnie/domains/ed-westwick.org/public_html/archives.php on line 1
I tried changing the get_header to header.php (as well as my footer) so it's like this:
<?php
include('header.php');
But that leaves me with this:
Parse error: syntax error, unexpected '<' in /home/minnie/domains/ed-westwick.org/public_html/archives.php on line 4
I can't seem to get it working. I wanted to get my archives like this http://www.scarlett-fan.com/archives.php or this here : http://www.tomcruisefan.com/archives.php .
Anyone know what I'm doing wrong, how can I fix this?
Thanks :)