Viewing 5 replies - 1 through 5 (of 5 total)
  • Check what is in your single.php file.

    Thread Starter missoriental

    (@missoriental)

    <div id="sidebar">
    	<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    	  <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
    			<li><h2>Author</h2>
    			<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
    			</li>
    			-->
        <?php /* If this is a 404 page */ if (is_404()) { ?>
    	<?php /* If this is a category archive */} elseif (is_category()) { ?>
    	<p>You are currently browsing the archives for the
    	  <?php single_cat_title(''); ?>
    	  category.</p>
    	<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    	<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    		for the day
    	  <?php the_time('l, F jS, Y'); ?>
    	  .</p>
    	<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    	<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    		for
    	  <?php the_time('F, Y'); ?>
    	  .</p>
    	<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    	<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    		for the year
    	  <?php the_time('Y'); ?>
    	  .</p>
    	<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    	<p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
    		for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
    	<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    	    <p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
    	    <?php } ?>
          <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
          <h2>Loved;</h2>
    
            <?php wp_get_archives('type=monthly'); ?>
            <h2>Things;</h2>
    
              <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    
          <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    		  <?php get_links_list(); ?>
    		  <h2>Ooh;</h2>
    
    		    <?php wp_register(); ?>
    
    		      <?php wp_loginout(); ?>
    <br>
    		    <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    		    <br><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a>
    		    <br><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a>
    		    <p>
    		      <?php wp_meta(); ?>
    		    </p>
    		    <h2>Yerrh;</h2>
    
    	  <?php } ?>
    
    	</div>

    Its the same as the sidebar.php
    i’m not very good with php 🙁

    Well, that’s the problem – being indentical with the sidebar. Ask the designer of the theme about the single.php

    Otherwise, you can just delete that file, and WP will use index.php to display your single post view.

    Thread Starter missoriental

    (@missoriental)

    wow, Thank you!! I designed the theme, but there’s still so much that i don’t understand about wordpress.

    Thanks. 🙂

    Now you are one step ahead… but it still isn’t perfect.

    Try to take a look at the single.php file of other themes (e.g. the default has one) and add the missing bits.
    Also, replace the next/prev links that you have for multiple posts view with the one for individual posts:
    http://codex.wordpress.org/Template_Tags/previous_post_link and its pair.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘individual post urls’ is closed to new replies.