• Hi there,

    I have been making a website for the Student’s Rep Council at my college and have just create a WordPress theme that mimics the index page and have set up the site with posting etc. It’s all good.

    http://www.ecasrc.com (wp is installed at ecasrc.com/news but used this tutorial – http://www.techcounter.com/wordpress/install-wordpress-files-to-a-subdirectory-but-run-your-blog-off-the-root-directory/ – to direct it to the root)

    However, I am having a few problems with the archive function. Maybe it is because there is no archive as of yet so it shows an error, but basically I was wanting the news/blogs to archive every month to my archives page.

    http://ecasrc.com/archive.php

    On the page I placed this php code:

    <?php wp_get_archives(‘type=monthly’); ?>

    Thinking it would state the month and then when you click on the month it comes up with the posts from that month. However, I get the error:

    Fatal error: Call to undefined function wp_get_archives() in /home/fhlinux197/e/ecasrc.com/user/htdocs/archive.php on line 51

    which obviously addresses the php I entered, but I’m not sure whether or not I have set up the archiving system properly (can’t find a setting for it on the dashboard), or that there is no archive yet, or that I have the wrong code, or even that it’s a total mess.

    I hope I gave you guys enough information to help.

    Thanks again and long live WP.

  • The topic ‘Using the archive… archive on seperate page’ is closed to new replies.