WordPress.org

Ready to get started?Download WordPress

Forums

super archives "page" (2 posts)

  1. Ronny
    Member
    Posted 8 years ago #

    hey guys. been trying to implement this for a while now, so i guess i'll turn to the community. i've been trying to follow this great super archive tutorial so helpfully created here.
    http://fernando.dubtribe.com/archives/2005/06/05/super-archives-applied/

    i've managed to do it before, but on a new website, i'm having some trouble. mainly because i'm using a different non-default theme perhaps?

    i created a new "page" with wordpress 1.5 and tried to put in the <?php teb_super_archive() ?> function but it didn't work (yes i did install some plugins like run-php that are suppose to allow you to er.. run php in the content of posts and pages)/

    i guess my real problem is that i can't seem to create a page for the live archives. i think my problem is because i'm using a theme, and so my real php files are all deep in the themes directory.

    and therefore when i create a archives.php page and put it in my main "www" directory, using this code

    <?php get_header(); ?>
    <div id="content" class="widecolumn">
    <?php teb_super_archive() ?>
    </div><div style="clear: both;"></div>
    </div>
    <?php get_footer(); ?>

    i get Fatal error: Call to undefined function: get_header() for example.

    any ideas to help?
    thanks for your time.
    Ronny

  2. dss
    Member
    Posted 7 years ago #

    Because the superarchives php document lives in the root of your worpress install, the tags for get_header and get_footer don't work.

    I don't know the code to call them correctly, but you can cut and paste your header and footer, from the theme you're using, into the superarchives.php and it should kill those errors.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags