how to display page content not post.. simple quest? (3 posts)

  1. chriskq
    Posted 7 years ago #

    new to wordpress, here is the theme im creating:

    thats the about us page, but i'd like to display the about us text not the post. Editing page.php

    i need to change this:

    <?php if (have_posts()) : ?>
    				<?php while (have_posts()) : the_post(); ?>
    				<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    					<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    					<div class="entry">
    						<?php the_content('Read the rest of this entry &raquo;'); ?>
    					<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    				<?php endwhile; ?>
    				<div class="navigation">
    					<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    					<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    				<?php else : ?>
    				<h2 class="center">Not Found</h2>
    				<p class="center">Sorry, but you are looking for something that isn't here.</p>
    				<?php get_search_form(); ?>
    				<?php endif; ?>

    but im not sure what too.... please help - thanks

  2. mrlive158
    Posted 7 years ago #

    I do not understand much your purpose.

    If you want to specific the "About Us" page, just edit it in pages/edit or make a template for it.

    If you change in that page.php, all the pages may show just one content.

  3. Garry Chahal
    Posted 7 years ago #

    you can create the about us page by going to pages->new page. Then make your about us page your home page by going settings->reading

Topic Closed

This topic has been closed to new replies.

About this Topic