Wordpress - Theme: Modifying Single Post Display



Wordpress Theme Step By Step Tutorial - Part 16: Now, it's time to update our single post display. We ever talk at here about single post. We will modify with layout that we made at front page.

Open your "single.php" within wp-content/themes/crown. Replace with following code:

wordpress theme single page

<? get_header(); ?>
  <div class="separator">
  </div>
  <div id="post_container">
    <div id="left_part">
<? if(have_posts()): ?>
  <? while(have_posts()): ?>
    <? the_post() ?>
    <h1>
      <a href='<?=the_permalink()?>'><?=the_title()?></a>
    </h1>
    <? _e("Posted "); ?> by <? the_author(); ?> at
    <? the_time('F js, Y') ?>
    <? the_content("more"); ?>
  <? endwhile; ?>
<? endif; ?>
    </div>
	<? get_sidebar(); ?>
    <div class="separator">
    </div>
<? get_footer(); ?>


Series this article:
Wordpress - Theme: Installing and Changing Theme
Wordpress - Theme: Building Your Own Theme
Wordpress - Theme: Writing First Code
Wordpress - Theme: Wordpress Code Style
Wordpress - Theme: Showing the Post Excerpt on the Front Page
Wordpress - Theme: Showing Category Name for Each Post
Wordpress - Theme: Showing a Post with Date and Author
Wordpress - Theme: Planning Theme Design
Wordpress - Theme: Writing Basic Code for Two Column
Wordpress - Theme: Splitting Index Become Some Small Parts
Wordpress - Theme: Uniting Various Small Parts
Wordpress - Theme: Separating Stylesheet From Header
Wordpress - Theme: Designing Simple Header
Wordpress - Theme: Placing Content to Body
Wordpress - Theme: Showing Archives, Categories, Links in Side bar
Wordpress - Theme: Creating Footer
Wordpress - Theme: Modifying Single Post Display
Wordpress - Theme: Showing Comments at Single Post
Wordpress - Theme: Showing Comment Form
WordPress - Theme: Showing Trackback,RSS, and Other Detail at Single Post
WordPress - Theme: Showing Title and Other HTML Header
WordPress - Theme: Making Theme Widget Enabled


Tag: wordpress, theme, single post Category: Web Design, PHP Application Post : February 03rd 2008 Read: 3,738 Bookmark and Share

blog comments powered by Disqus