archetyped / cornerstone

Enhanced Content Management for Wordpress
http://archetyped.com/tools/cornerstone/
GNU General Public License v2.0
6 stars 1 forks source link

Pagination on Section Page #10

Closed schmoomsm closed 7 years ago

schmoomsm commented 8 years ago

Hi!

Love the plug-in. It made Wordpress work wonderfully with our site's (www.mco.org) diverse audiences, so big thanks!

We have issue that I've been unable to resolve: On Section pages, I can't get pagination to work.

We're using:

I've attached my revised loop code, which appears on theme's Child Menu Template HUE-CORNERSTONE.txt. Most of the code comes from content-standard.php of the theme, too. I'm not a developer by any stretch.

If you'd like to see how section pages display, look at http://www.mco.org/wordpress/autocross-news/

There are many, many more posts in that section that are accessible only through search.

Again, many thanks for the plug-in. It has been a life-saver for us.

Thanks in advance and all the best for 2016!

Naresh Debidin Motorsport Club of Ottawa

archetyped commented 8 years ago

Thanks for the report. I am looking into this.

schmoomsm commented 8 years ago

Hi,

Wondering if you've made any progress? Thx!

IkeTen commented 7 years ago

Same issue with generatepress theme. Am using this code here.

archetyped commented 7 years ago

Here is an example using WP's paginate_links(). You can further customize the pagination output using paginate_links() other parameters (documentation).

echo paginate_links( array(
    'format' => 'page/%#%/',
    'total' => cnr_children_max_num_pages(),
    'current' => get_query_var('paged')
) );