• dopeambition

    (@dopeambition)


    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: https://dopeambition.com

    here is my index.php

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

    and my page.php:

    [dito]

    PLEASE HELP!!!!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dopeambition

    (@dopeambition)

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

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

    Michael

    (@alchymyth)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Next posts previous posts links not working/showing up’ is closed to new replies.