Hope you're all having a grand time. I wanted to have a pagination on a custom query that I wanted to show at the bottom of my homepage. Any ideas guys on how to do this? Please see attached link of my design that I wanted to look like
Woohoo! Finally got it working, apparently I also have a main loop at the top part of my homepage I forgot to add <?php wp_reset_query();?> on that loop. Thanks so much Doc for the help, really appreciate it!
Yeah my fault too. One thing though, what If I also add another pagination for my main loop, would that work? Or having 2 paginations on index.php doesn't work for Wordpress?
Hope you're all having a grand time. I wanted to have a pagination on a custom query that I wanted to show at the bottom of my homepage. Any ideas guys on how to do this? Please see attached link of my design that I wanted to look like
http://i.imgur.com/SJ0AY.png
Thank you advance :)
All the best,
Val
http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html
Here's the code I'm using in my index.php file
Can you tell me how it should it be?
Thank you so much :)
Val
And then you'll need to add in the pagination after your endwhile.
I tried using the code you gave me, also added post navigation link, but the pagination doesn't seems to be working?
Here's the code snippet:
Am I missing something?
Thanks!
Val
'paged' => get_query_var('paged')...try:
'paged' => get_query_var('page')Thanks Doc!
It didn't worked :|
Let's try simplifying the loop and getting rid of the 'else' stuff and we'll add a reset:
Got it, will try again with the code you gave me.
Thanks Doc!
Val
Thank you CSS Tricks! :D
Best,
Val