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

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Genesis Custom Loop With Pagination

There’s at least 2 ways to create your own custom loop in Genesis.

You can use:

  1. genesis_custom_loop
  2. new WP_Query

The 2nd option doesn’t output the same HTML markup and hooks so the output is very basic when using a new WP_Query unless you add the hooks and markup back which is what the code in this tutorial produces:

You also get to use the Genesis > Theme Settings > Content Archive settings unless you want to hard code different args which you can also do.

Usage

Simply upload the file to your child themes root directory and select the Your Custom Loop Template from the Page Attributes meta box on the Edit Page screen like this:

Here’s the template code for logged in members:

Register for full access

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems