• Resolved asaltz

    (@asaltz)


    When I had my web designer transfer my wordpress.com blog to my wordpress.org hosted site, she made it so the blog was a category and not a page. I hired another web designer to create a Blog page template to direct the blog entries to so my url could read alanasaltz.com/blog instead of alanasaltz.com/category/blog.

    For some reason, though, there’s no “Older Entries” link at the bottom of the page. I’ve been looking everywhere, but I can’t find the code to insert to make that link appear. I asked the designer to help me, but he started arguing with me about how it wasn’t what I asked him to do, and refused to help me. Now I’m stuck. Could someone tell me what code I need to add to the Blog page template, and exactly where to insert it? I would greatly appreciate it. Thank you!

    By the way, here’s the blog’s url: http://alanasaltz.com/blog
    As you can see, the Older Entries link is missing.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Check if you have a Archive widget by clicking on Appearance>>>Widgets if so drag in side bar.

    edit category.php of your theme (or archive.php if the former does not exist) and look for (or very similar):

    <div class="pagination clearfix">
    
    	<p class="pagination-next">
    	    <?php next_posts_link('&larr; Older entries'); ?></p>
    
    	<p class="pagination-prev">
    	 <?php previous_posts_link('Newer entries &rarr;'); ?></p>
    
    </div><!-- end pagination -->

    copy this section and paste it into your blog page template, into the same position as it was in category.php

    Thread Starter asaltz

    (@asaltz)

    That’s good to know about, but I’d still like to have a link at the bottom where people can click to view my older entries.

    Thread Starter asaltz

    (@asaltz)

    alchymyth – I can’t find that section in archive.php and I don’t have a category.php

    I see that you found the widget

    can you paste the code of archive.php into a http://pastebin.com/ and post the link to it here?

    (btw: for the next step, your blog template is page-blog.php)

    Thread Starter asaltz

    (@asaltz)

    it is hidden behind this line:

    <?php include( TEMPLATEPATH . '/includes/pagination.php'); ?>

    copy the line and add it to page-blog.php after the line with
    <?php endwhile; ?>

    Thread Starter asaltz

    (@asaltz)

    Yeah, I’d actually tried that, and it didn’t work (just tried again too, no luck).

    Thread Starter asaltz

    (@asaltz)

    I don’t know if this will be helpful, but the link is showing up on the blog category page here: http://alanasaltz.com/writing/blog (I changed category to “writing”). I’m not sure where to view the code for that, though.

    can you paste the code of page-blog.php into a http://pastebin.com/ and post the link to it here?

    Thread Starter asaltz

    (@asaltz)

    the links don’t work with this kind of query:

    <?php $recent = new WP_Query("cat=17&showposts=7"); while($recent->have_posts()) : $recent->the_post();?>

    try and change the above line to:

    <?php query_posts("cat=17&showposts=7&paged=".get_query_var('paged')); while(have_posts()) : the_post();?>

    and add this
    <?php include( TEMPLATEPATH . '/includes/pagination.php'); ?>
    back to the line after the <?php endwhile; ?>

    Thread Starter asaltz

    (@asaltz)

    Yes, it worked! Thank you so much! I really, really appreciate it.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Made New Template But Can't Find Code for Older Entries Link’ is closed to new replies.