WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Working with multiple loop index (3 posts)

  1. toxiccosmos
    Member
    Posted 7 months ago #

    I have a sort of complicated index page and I'm having trouble getting this to work with it.

    Here's my site: http://victoriaarriaga.com/test_site/
    As you can see, the second page just seems to repeat the first, and I think it's because of the multiple loops I have going on.

    This is my first time working with multiple loops, so I'm kind of at a loss on how to begin to handle this. Any help will be greatly appreciated.

    Here's my index/loops:
    http://pastebin.com/babd4KDe

    Thank you.

    http://wordpress.org/plugins/wp-pagenavi/

  2. toxiccosmos
    Member
    Posted 5 months ago #

    UPDATE:
    I've been able to rewrite the index using the $count variable explained here: http://bythegram.ca/2012/10/tutorials/style-wordpress-posts-in-a-loop-differently/

    My edits to the index/loop:
    http://pastebin.com/mDw0jSF1

    There is now only one loop, REJOICE, but I'm still unable to get the navigation embedded correctly. As you can see here http://victoriaarriaga.com/test_site/ the nav shows up, but it's not counting the posts (there are enough for two pages). Idealy, I'd like a nav at the top, where it currently is, and one at the bottom just under the posts.

    Any aditional help on what I'm doing incorrectly would be much appreciated.

    Also, in the event that I'm able to figure it out before getting help, I'll try and remember to keep this updated for those who may stumble upon it in search of the same answers.

    Thanks.

  3. toxiccosmos
    Member
    Posted 5 months ago #

    UPDATE:
    I've gotten the navigation to work. You can see the resolution here: http://wordpress.org/support/topic/nesting-navigation-within-a-count-loop?replies=7

    Though I have to add that I'm no longer using WP-PageNavi. I couldn't get that to work correctly and instead moved on to Word Press' paginate_links

Reply

You must log in to post.

About this Plugin

About this Topic