WordPress.org

Ready to get started?Download WordPress

Forums

Subdirectories (2 posts)

  1. Kiddeath91
    Member
    Posted 8 years ago #

    This one is probably easy so here goes: I'm trying to create subdirectory pages inside of a theme. For example, my Archives page resolves to /archives/, even though it actually sits in the same 'theme' folder. (I'm pretty sure it has something to do with the header include:
    <?php
    require('./wp-blog-header.php');
    /*
    Template Name: Archives Template
    Description: A template for my archives pages.
    */
    ?>

    Up until now, I have created subdirectories outside of the theme folder, like an about page. So sitting in a little folder called about is an index.php file that has a header includes that looks like this:
    <?php
    require('./../wp-blog-header.php');
    ?>

    The problem I'm ultimately trying to solve is to get this about page back into the theme folder so that search functionality can be preserved. Currently, my search feature only works for pages that sit inside the theme folder (archives, categories). I know that this is a pretty basic WP template thing, but up till now, I have had no need to learn how to do this. Thanks for any help, WP forum folk.

  2. Kiddeath91
    Member
    Posted 8 years ago #

    I knew this was easy! Never messed with the 'pages' function before. Here's a great resource for any who don't know:
    http://codex.wordpress.org/Pages

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags