You could add a homepage link in the sidebar (menu) or in the footer.
You could use:
<?php if ($single) { ?>
<?php previous_post('% |','','yes') ?> ">Home <?php next_post('| %','','yes') ?>
<?php } ?>
inside the loop, it give a nice [previous post | home | next post] link above the post.
Thread Starter
lawtai
(@lawtai)
Does that show up as “Previous Post” or the actual “Name of previous post”?
Thread Starter
lawtai
(@lawtai)
Thanks for the code IanD! It worked perfectly.
It actually does show the name of the posts.
which file does that get added to? thanks!
okay found where this goes. “the loop” wasn’t in one of the themes I had (at least the code wasn’t the same) but it was in another. Now it looks right, except “Home” is just text (not a link). Looks like this:
“>Home
Is there something I’m missing (obviously!)?
Thanks.
From memory it has to go below the date call.
hmm, nope. 😉 i’ll try dropping it down some more.
still can’t get it working. this is frustrating. just using the “classic” theme. Here’s the top part of my index with the error:
<?php
get_header();
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ($single) { ?>
<?php previous_post(‘% |’,”,’yes’) ?> “>Home <?php next_post(‘| %’,”,’yes’) ?>
<?php } ?>
<?php the_date(”,'<h2>’,'</h2>’); ?>
Thread Starter
lawtai
(@lawtai)
you need to make Home a link by using the < a href > function
hmm, ok, seems to work, now that I have:
<?php
get_header();
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ($single) { ?>
<?php previous_post(‘% |’,”,’yes’) ?> Home <?php next_post(‘| %’,”,’yes’) ?>
<?php } ?>
<?php the_date(”,'<h2>’,'</h2>’); ?>
Thanks. Color is black instead of the other which is red but I can probably deal with it. 😉 Thanks again.
ha! fixed it. i’m so new at this it isn’t even funny. anyhow, found a sixapart site with tags on it and changed the typical HTML href to:
Home
works great and colors match.
thanks everyone.
whoops…
should be <a href="/wp/index.php">