• I guess my last post was a little crazy in trying to explain it but I have an example now.

    http://www.transycan.net/blogtest/

    has the about page. I’m wondering if it’s a post or a page, or if its seperate from wordpress.. and if it is how it was he was able to call on the header, sidebar, and footer without getting an error?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The about page is indeed a “page”. You can call the header/footer/sidebar by creating a template called about.php in your /wp-content/themes/<your-current-theme> directory which makes calls to get_header, get_sidebar, and get_footer.

    My current about.php looks like this:

    <?php
    /*
    Template Name: About
    */
    ?>

    <?php get_header(); ?>

    <div id="content">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class="post">
    <h2 class="pagetitle">About Me</h2>

    <dl>
    <dt>Author:</dt>
    <dd><?php the_author(); ?></dd>
    <dt>Bio:</dt>
    <dd><?php the_author_description(); ?></dd>
    </dl>
    <?php endwhile; else: ?>

    <?php _e('Sorry, no posts matched your criteria.'); ?>

    <?php endif; ?>
    </div>
    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Regards

    Thread Starter corefx

    (@corefx)

    ok so would you know how to include the header if it wasnt a page of wordpress.. but seperate from the blog and still be able to call the header without making it in the same directory as your theme?

    I.e. i have a font section, and i have a folder for the seperate pages, how would i add the header to those pages?

    Why didn’t you ask the owner of the blog? 🙂
    It is a Page.
    It was done with the Write Page feature of WP

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fix me’ is closed to new replies.