• I brought up this issue in one or two posts already. I thought is wise to begin a new thread, as I am making progress in my search for a solution. However, I need help going to the next step.
    I’m trying to find a way to have a chronological global navigation scheme. Here is the code snippet I currently have:

    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date('','<h2>','</h2>'); ?>
    <?php previous_post('%', 'previous ', 'no', 'no', 1, '') ?>
    " title="home"> home
    <?php next_post('%', ' next', 'no', 'no', 1, '') ?>

    I want two things:
    1. Replace the text links with images.
    2. Only have the “previous” link show on the index.php page. Currently, the “home” link is showing also, but that isn’t good because the index.php page is home.
    Can someone help me with these?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 2.
    I think that the ‘is_home()’ function determines if it’s the home or not. (CVS or Nightly though)
    <?php if (!is_home()) { ?>
    " title="home"> home
    <? } else {} ?>

    Thread Starter pezastic

    (@pezastic)

    This works with 1.2:

    <?php
    previous_post('%','<img
    src="http://www.bbiverson.com/images/buttons/previous.jpg" alt="Read Previous Entry" align="middle" /> Previous Entry', 'no', 'no', 1, '');
    if (!((basename (__FILE__) == 'index.php') && ($_SERVER['QUERY_STRING'] ==
    ''))) {
    ?>
    &nbsp; ">Latest Entry &nbsp;
    <?php
    next_post('%','Next Entry<img
    src="http://www.bbiverson.com/images/buttons/next.jpg" alt="Read Next Entry"
    align="middle" />', 'no', 'no', 1, '');
    }
    ?>

    Luckily, someone far smarter than me on these forums gave me the solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I need help taking it a step further’ is closed to new replies.