WordPress.org

Support

Support » Themes and Templates » how to display page content not post.. simple quest?

how to display page content not post.. simple quest?

  • new to wordpress, here is the theme im creating:
    http://howtoimpact.com/blog/?page_id=2

    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;'); ?>
    					</div>
    					<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>
    				</div>
    				<?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>
    				</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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to display page content not post.. simple quest?’ is closed to new replies.
Skip to toolbar