Created
December 16, 2018 22:05
-
-
Save jamiemitchell/33d21a1fd5f7df6db38f454913a5ae0c to your computer and use it in GitHub Desktop.
Genesis Loop Overide - Use genesis_custom_loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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