WordPress.org

Ready to get started?Download WordPress

Forums

Including Content, etc. (6 posts)

  1. xsummergustx
    Member
    Posted 9 years ago #

    Oh, god. I'm going insane. LOL. Seriously, I have read manuals and documentations back and forth, and back and forth, and I still haven't been able to get the templates working... or the tags. Whatever.

    http://charmedbycharmed.com/anna/wp-content/themes/sunset/index.php

    That's the link to the theme I'm trying to do. Where it says "The content will be here" or whatever, that's where I'm trying to put my main posts.

    Can someone tell me how to do that... and also explain a little bit furthermore in easier terms on what templates and themes are? Thank you. =]

  2. MichaelH
    Member
    Posted 9 years ago #

    In your administration panel under Presentation, Themes, you should be able to activate the sunset theme. That should then replace the 'Classic' Theme showing at http://charmedbycharmed.com/anna/

    If that doesn't work for you come back here and let us know.

  3. xsummergustx
    Member
    Posted 9 years ago #

    Hm, yeah. I know how to do that. What I meant was like, I have header.php and footer.php in my new theme folder I've created. Now, what? How do I like, include my current posts, etc.?

  4. moshu
    Member
    Posted 9 years ago #

    This is how themes and templates work: it's a simple visual aid. I hope it can help you to better understand their relation.
    Please, post back if you need more help!

  5. xsummergustx
    Member
    Posted 9 years ago #

    Okay, so I'm kind confused. Here's what you do to have WordPress content between headers and footers?

    <?php get_header(); ?>

    <?php the_content(); ?>

    <?php get_footer();

  6. moshu
    Member
    Posted 9 years ago #

    That's not enough. You need The Loop. Unfortunately the Codex is down, so you cannot read about it. However, in my other post at my blog (see link above) there is another article about the integration which gives an example of the Loop.

Topic Closed

This topic has been closed to new replies.

About this Topic