Skip to content

Instantly share code, notes, and snippets.

View chaiperez's full-sized avatar
🏠
Working from home

Chai chaiperez

🏠
Working from home
View GitHub Profile
@chaiperez
chaiperez / archive-testimonials.php
Created September 3, 2017 09:08 — forked from cdils/archive-testimonials.php
This is code for a custom page template removing the standard Genesis loop and inserting a custom loop. Similar to https://gist.github.com/4684423.js, but without a grid loop.
<?php
/**
* Template Name: Testimonial Archives
* Description: Used as a page template to show page contents, followed by a loop through a CPT archive
*/
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop
add_action( 'genesis_loop', 'custom_do_loop' ); // Add custom loop