ok, so this is the situation. i've got a sidebar that shows searchbar, "Currently vieweing", Pages, and two other blocks that i made myself. on the single.php page i only got the previous-next links added at the top of the sidebar, because i only want them to be shown on the single post page.
now comes the tricky part. i want to add the previous-next links in the sidebar so next time i can edit the looks very easily just by opening up the sidebar.php. but then it would also be shown on the index.php as empty links, since it doesnt know on what post it is because on the index.php there are 3 posts shown.
so how can i make the previous-next links and the "Currently viewing" part only to be shown when it's on single.php page?
roughly something like this:
if (location) = single.php
then show "Currently viewing" and previous-next links.
or the other way:
if (location) = index.php
then hide "Currently viewing" and previous-next links.
can anybody help me out here? thank so much