Forums

[resolved] Help With Pages (7 posts)

  1. Andrew
    Member
    Posted 5 months ago #

    Hello.

    I'm having trouble getting my static page to display content.

    How can I display what I've put in my static page?

    The template displays okay but not the content.

    Please help,

    Andrew

  2. Christine
    Moderator
    Posted 5 months ago #

    Link to your site please.... When you say static page, what do you mean? What page is it? Do you have content in your wordPress admin for that page?

  3. Andrew
    Member
    Posted 5 months ago #

    Okay. I am making an about page for my blog. But the info I put in the page doesn't show on the page itself.

    Yeah, I added content into the page on the WordPress admin section.

    Here is the link:

    http://www.lovespelles.com/about/

    Please help.

    Thank you,

    Andrew

  4. Christine
    Moderator
    Posted 5 months ago #

    In your theme template page.php are you using the WordPress loop?

    It should look something like this:

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <h1><?php the_title(); ?></h1>
       <?php the_content(); ?>
    </div>
    
    <?php endwhile; // end of the loop. ?>
  5. Andrew
    Member
    Posted 5 months ago #

    No loop in this template file.

    It is a simple about page. Nothing but static information will be displayed on it.

    Please help.

    Thank you,

    Andrew

  6. Christine
    Moderator
    Posted 5 months ago #

    Well if you want WordPress to pull the content that you inserted in the admin, then you need a loop otherwise, you'll never be able to display anything.

    I would try and insert the code above and see what happens.

  7. Andrew
    Member
    Posted 5 months ago #

    Omg, I forgot that.

    Thank you.

    :Dd

    -Andrew

Reply

You must log in to post.

About this Topic

Tags