Skip to content

Instantly share code, notes, and snippets.

@jamiemitchell
Created December 16, 2018 22:05
Show Gist options
  • Save jamiemitchell/33d21a1fd5f7df6db38f454913a5ae0c to your computer and use it in GitHub Desktop.
Save jamiemitchell/33d21a1fd5f7df6db38f454913a5ae0c to your computer and use it in GitHub Desktop.
Genesis Loop Overide - Use genesis_custom_loop
/**
* Remove default loop. Execute Custom Loop Instead.
*******************************************************/
function shiny_blog_custom_loop() {
global $paged;
$args = (array(
'category_name' => 'Tips Tricks',
'order' => 'DESC',
'order_by'=> 'date',
'paged' => $paged,
'posts_per_page' => 5
));
genesis_custom_loop( $args );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment