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
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
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?
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
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. ?>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
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.
Omg, I forgot that.
Thank you.
:Dd
-Andrew
You must log in to post.