×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

different page layout for posts and pages

different page layout for posts and pages

different page layout for posts and pages

(OP)
I have themed up my first wordpress website. I have used the index.php and single.php pages.

At the moment the blog homepage is displayed the same as my content pages.

Basically I want the content pages to not display a title, but I want the blog homepage (which lists latest blogs) and the blog single pages to display a title and the blog post.

is this possible?

My index.php page currently looks like

CODE

<?php get_header(); ?>

<?php get_sidebar(); ?>

<div id='content'>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<?php the_content('Read the rest of this entry &raquo;'); ?>

<?php endwhile; ?>

<?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; ?>   
   
</div>
   
<div id='rightside'>
Stuff
</div>
   
</div>
  
<?php get_footer(); ?>

RE: different page layout for posts and pages

if you create a template called page.php then WP will use this for pages.

RE: different page layout for posts and pages

(OP)
haha, didn`t know that thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close