• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Wordpress

Just The Tech, News, and Info We Deem To Post

  • Home
  • About
  • Contact
  • Contribute
You are here: Home / Code Snippets / Simple GridLoop for Genesis

Simple GridLoop for Genesis

Genesis Theme Framework Code Snippets

Use the following code to create a WordPress Template file (blog.php, archive.php, etc)that will create a Grid Loop for post content in a Genesis theme.

<?php
/**
 * Set up the Grid Loop
 * @author Bill Erickson
 * @link http://www.billerickson.net/genesis-grid-loop-content/
 *
 */
function child_grid_loop_helper() {
	genesis_grid_loop( array(
		'features' => 2,
		'feature_image_size' => 'child_full',
		'feature_image_class' => 'aligncenter post-image',
		'feature_content_limit' => 0,
		'grid_image_size' => 0,
		'grid_content_limit' => 0,
		'more' => __( '[Continue reading...]', 'genesis' ),
		'posts_per_page' => 10,
	) );
}
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'child_grid_loop_helper' );
 
genesis();

by Jack Alltrade on August 6, 2017

Filed Under: Code Snippets Tagged With: Code, Genesis Framework, Template File

Reader Interactions

Share Your Two Cents Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • Code Snippets
  • Development
  • File Management
  • Genesis Framework
  • Hosting
  • Legacy
  • Plugins
  • SEO
  • Tech Terms
  • Themes
  • User Experience
  • User Interface
  • WordPress Core
  • WordPress Functionality

Warning! Use at your own risk!

As always, use at your own risk and remember to backup your site prior to inserting new code.

© Copyright Jack Alltrade & Associates 2025 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates