• Hello!

    I would like to be able to add “previous” and “next” navigation links to the bottom of single posts (when users click on the post name in the sidebar).. The Toni theme doesn’t have a single.php file, so I wonder: Can I just copy the Default or Classic theme’s single.php file?

    I’ve upgraded to WP 2.0, and here’s the blog in question:

    below

Viewing 1 replies (of 1 total)
  • You can (you’re better off copying your theme’s index.php to a single.php and making what changes you need), but the “previous” and “next” post template tags are query-type aware, meaning that if you place them in your index.php, they should only appear on single post pages.

    There is also a conditional tag that lets you code elements in a template to appear only if one is on a single post page:

    <?php if(is_single()) : ?>
    <p>I'm on a single post page!</p>
    <?php endif; ?>

Viewing 1 replies (of 1 total)

The topic ‘Help on Toni theme…’ is closed to new replies.