• Resolved amyneedshelp

    (@amyneedshelp)


    Hi everyone!

    I hope you can help me (V.V)

    My problem: I reversed the post display and navigation order from showing the latest posts first to showing them last. I had to reverse the single post navigation in order for it to navigate in the reversed order too.
    But now, that I look at the posts in the category listing I see that it hasn’t been reversed as well >> BUT only visually. Meaning, where there should be a button to navigate to the right there’s nothing. Instead the button on the left side is displayed. But when I click on it it actually shows the right follow-up page! The pagination with numbers is working just fine btw. It’s only the arrows.

    Here’s the category page I’m talking about (scroll to the bottom to see the navigation): my comic pages listing
    And here’s the code I allready changed in my theme’s code (I simply replaced all $next with $prev):

    <nav class="navigation single-page-navigation" role="navigation">
        <?php
        $prev = get_adjacent_post(false,'',false);
        $next = get_adjacent_post(false,'',true);
        ?>
        <div class="nav-links grids">
            <?php if( is_object($next) && $next->ID != get_the_ID()): ?>
            <div class="nav-previous grid-6">
                <a href="<?php echo get_permalink($next->ID); ?>"><i class="fa fa-chevron-left"></i> <?php _e( 'Previous Page', 'stag' ) ?></a>
            </div>
            <?php endif; ?>
    
            <?php if( is_object($prev) && $prev->ID != get_the_ID()): ?>
            <div class="nav-next grid-6">
                <a href="<?php echo get_permalink($prev->ID); ?>"><?php _e( 'Next Page', 'stag' ) ?> <i class="fa fa-chevron-right"></i></a>
            </div>
            <?php endif; ?>
        </div>
    </nav>

    I don’t know anything about php btw. I just guessed O_O”

    I hope someone can help me!

Viewing 1 replies (of 1 total)
  • Thread Starter amyneedshelp

    (@amyneedshelp)

    I think I solved the problem and I’m posting the answer in case someone has this issue as well:

    Ok, so since the buttons worked the way they should I figured the problem has to be something “superficial” and I swapped the CSS for the bottom navigation buttons (Yes, it was as simple as that -_- ).
    It really solved the problem! I’m not sure if it works on devices like older phones which seem to disable javascript, cut off my footer widgets and parts of my CSS (no background or icons, like the ones I use in the navigation I had the problems with, are displayed).

    Ok, bye bye ??

Viewing 1 replies (of 1 total)
  • The topic ‘reversed post navigation order but category listing order needs to change too’ is closed to new replies.