Skip to content

Instantly share code, notes, and snippets.


DavidPeralvarez/functions.php Secret

Created Jan 12, 2020
What would you like to do?
Ejemplo de uso del Custom Loop
* Custom front page template
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'genesis_sample_do_loop' );
function genesis_sample_do_loop(){
global $query_args; // los argumentos de wp_query()
$args = array(
'category_name' => 'sub-category-11'
genesis_custom_loop(wp_parse_args($query_args, $args));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.