• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Add Pagination to AgentPress Pro Listings Archive Page

This PHP code enables you to paginate a CPT archive page using pre_get_posts with posts_per_page.

This code overrides your WordPress Reading settings for your CPT archives, in this case, for a custom post type named listing. Swap out listing in the code for use with any other CPT.

Code gets pasted at the end of your child themes functions file or custom functionality plugin.

AgentPress Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags