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

  1. toxiccosmos
    Posted 2 years 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:

    Thank you.


  2. toxiccosmos
    Posted 2 years ago #

    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:

    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.


  3. toxiccosmos
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic