I am trying to put the following code:
<center> <?php previous_post('« « %', '', 'yes'); ?>
| ">Main Page
| <?php next_post('% » » ', '', 'yes'); ?>
in my index.php.
But I want it only on individual post pages rather than on the main page. I have tried putting in an if... else statement, but I keep on getting error messages whenever I do so.
Can someone please give me a clue on:
(1) the syntax of the if...else statement,
(2) what condition to check for in order for have the code be activated only for individual post pages?
Thanks for your help!