• Oy I hate Yahoo’s WordPress Blog – They are annoying little… welll…

    So here is my problem the code for the previous/next page isn’t working. This is what i have on the page:

    <ul>
    			<li><?php next_post_link('&laquo; Older Entries') ?></li>
    			<li><?php previous_post_link('Newer Entries &raquo;') ?></li>
    		</ul>

    And it’s not linking like it should be. Could someone kindly help me out with some solutions for this.

    my client’s blog: https://hollidaypark.com/blog2/blog/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter joebrooksie

    (@joebrooksie)

    Everyone wake up from their New Year’s hangover yet?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well they’re commented out right now

    <!--<ul>
    			<li>&laquo; Older Entries</li>
    			<li>Newer Entries &raquo;</li>
    		</ul>-->
    Thread Starter joebrooksie

    (@joebrooksie)

    The solution provided by user ipstenu is not working.

    Here is our full index.php file in the theme. The entries are not commented out that i can see…

    <?php get_header(); ?>
    <div id="content">
    <div class="contentcontent">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="posttitle">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    			</div>
                <div class="posttext">
    
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
                </div>
    			<div class="postmeta">
    				<p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> on <?php the_time('F jS, Y') ?> by <?php the_author() ?> | <?php edit_post_link('Edit', '', ' | '); ?></p>
    			</div>
    			</div>
    
    		<?php endwhile; ?>
    
    		<ul>
    			<li><?php next_post_link('&laquo; Older Entries') ?></li>
    			<li><?php previous_post_link('Newer Entries &raquo;') ?></li>
    		</ul>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    </div>
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Any help would be appreciated.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You’re missing ;’s at the end there.

    <ul>
    			<li><?php next_post_link('&laquo; Older Entries'); ?></li>
    			<li><?php previous_post_link('Newer Entries &raquo;'); ?></li>
    		</ul>
    Thread Starter joebrooksie

    (@joebrooksie)

    I added ;’s and it’s still not working. Pasted below is the current index.php.

    <?php get_header(); ?>
    <div id="content">
    <div class="contentcontent">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    			<div class="posttitle">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    			</div>
                <div class="posttext">
    
    				<?php the_content('Read the rest of this entry &raquo;'); ?>
                </div>
    			<div class="postmeta">
    				<?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> on <?php the_time('F jS, Y') ?> by <?php the_author() ?> | <?php edit_post_link('Edit', '', ' | '); ?>
    
    			</div>
    			</div>
    
    		<?php endwhile; ?>
    
    		<ul>
    			<li><?php next_post_link('&laquo; Older Entries'); ?></li>
    			<li><?php previous_post_link('Newer Entries &raquo;'); ?></li>
    		</ul>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    		Sorry, but you are looking for something that isn't here.
    
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    </div>
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    I’ve noticed in the source of the page it shoots out blanks there:

    <ul>
    <li></li>
    <li></li>
    </ul>
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Hmm

    Try this:

    <ul>
      <li><?php previous_post_link('&laquo; %link') ?></li>
      <li><?php next_post_link('%link &raquo;') ?></li>
    </ul>

    Thread Starter joebrooksie

    (@joebrooksie)

    When I was coding for this site i noticed that it took awhile for some changes to appear. Yahoo has a strange caching system.

    So I’ll let you know in a couple of hours if that helped….

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Yahoo Blog ~ Previous/Next page not working’ is closed to new replies.