WordPress.org

Ready to get started?Download WordPress

Forums

Next posts previous posts links not working/showing up (3 posts)

  1. dopeambition
    Member
    Posted 2 years ago #

    The "next posts/previous posts" work within specific pages, or once you click on a menu item, but the links are not showing up at the bottom of my posts on the main index. In fact, in my main index.php, there is no code for the posts_nav_link()/
    I have been working on fixing it mysel for WEEKS, trying to read past forum inquiries and Codex instructions, but i cannot do it. Even when I insert code, the links will show up, but won't actually direct me backwards; they'll just keep showing the front page for every time I click back.

    my site: http://dopeambition.com

    here is my index.php

    [code moderated - please follow the forum guidelines for posting code]

    and my page.php:

    [dito]

    PLEASE HELP!!!!!!

  2. dopeambition
    Member
    Posted 2 years ago #

    index.php pastebin: http://pastebin.com/WqjbTUUU

    page.php pastebin: http://pastebin.com/mBPzxhrM

  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

    Even when I insert code, the links will show up, but won't actually direct me backwards; they'll just keep showing the front page for every time I click back.

    index.php

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=post&posts_per_page=".$woo_options['woo_blog_number_of_posts']); ?>

    the 'paged' parameter needs to be added to the query; for example:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=post&posts_per_page=".$woo_options['woo_blog_number_of_posts']."&paged=".$paged); ?>

    you would still need to add some code to show the pagination links.

    however, generally, as you are using a commercial theme, please contact the theme seller for support.

Topic Closed

This topic has been closed to new replies.

About this Topic