Jump to content


Photo
- - - - -

Pagination - Still Trying to Figure Out How

pagination page numbers

Best Answer Simon_P , 10 February 2013 - 08:36 PM

You don't need to add any code it's already in the framework. Sent from my iPad using Tapatalk HD Go to the full post


  • Please log in to reply
9 replies to this topic

#1 wendyweb

wendyweb

    Member

  • Members
  • 19 posts
  • Country: Country Flag

Posted 10 February 2013 - 06:25 PM

I would like to paginate my categories, and other listings with page numbers (instead of just the "previous" link.

 

I'm looking at WP-Paginate, but I'm still a bit confused about where to find the php I need to replace and how to do it in the Pagelines framework.  For posts pagination. This is what the WP-Paginate pages say - but I don't see these theme files in Pagelines.

1) Open the theme files where you'd like pagination to be used. Depending on your theme, this may be the loop.php file or the index.php, archive.php and search.php files. The twentyeleven theme places the pagination code in functions.php in the twentyeleven_content_nav() function.
 

2) Replace your existing previous_posts_link() and next_posts_link() code block with the following:

<?php if(function_exists('wp_paginate')) { wp_paginate(); } ?>

 

Catrina was working to help me with this in live chat, but I'm still a bit vague on exactly what steps I need to take this work.   I'm developing a big antiques website - where chronology (previous post / next posts) isn't releavant, I need numbers!  I'd like to make the pagination work on all kinds of pages: searches, categories, view listings, etc.

 

Can you help?



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 10 February 2013 - 06:34 PM

Why not use wp page navi plugin? It works without having to edit any files Sent from my iPad using Tapatalk HD
  • wendyweb likes this

#3 wendyweb

wendyweb

    Member

  • Members
  • 19 posts
  • Country: Country Flag

Posted 10 February 2013 - 07:12 PM

Cool, no one has suggested that yet. I'll look for it and give it a try.



#4 wendyweb

wendyweb

    Member

  • Members
  • 19 posts
  • Country: Country Flag

Posted 10 February 2013 - 07:15 PM

Just searched wordpress - and I am not sure what plugin you mean.  Can you provide the exact name and I'll try it out and let you know how it works!



#5 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 10 February 2013 - 07:20 PM

Please Login or Register to see this Hidden Content

Sent from my iPad using Tapatalk HD

#6 wendyweb

wendyweb

    Member

  • Members
  • 19 posts
  • Country: Country Flag

Posted 10 February 2013 - 08:15 PM

Thanks.  Looked at that, and it also looks like it requires editing the php... this is what the instructions say.  And I'm not clear how to do this PHP edit in Pagelines and where these codes to replace are located.

 

"In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.
 

In the Twentyten theme, it looks like this:

Please Login or Register to see this Hidden Content

You would replace those two lines with this:


<?php wp_pagenavi(); ?>

For multipart pages, you would look for code like this:

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content



#7 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 10 February 2013 - 08:36 PM   Best Answer

You don't need to add any code it's already in the framework. Sent from my iPad using Tapatalk HD

#8 wendyweb

wendyweb

    Member

  • Members
  • 19 posts
  • Country: Country Flag

Posted 10 February 2013 - 08:41 PM

Just installed, and I love it!  It's clean, it's working beautifully. Thank you so much!  Perhaps let @Catrina know - she was trying to help me yesterday on this in the chat, and made a good effort, but I don't think she'd heard of this solution.  It's perfect.  Thanks again.



#9 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 10 February 2013 - 08:51 PM

She'll see this post anyway :) Glad your happy with it. Sent from my iPad using Tapatalk HD

#10 wendyweb

wendyweb

    Member

  • Members
  • 19 posts
  • Country: Country Flag

Posted 10 February 2013 - 08:54 PM

I really appreciate everything both you and Catrina did to help! You are great!







Also tagged with one or more of these keywords: pagination, page numbers