remove_action('genesis_loop', 'genesis_do_loop'); add_action('genesis_loop', 'custom_do_cat_loop'); function custom_do_cat_loop() { global $query_args; // any wp_query() args $args= array('orderby' => 'title', 'order' => 'ASC'); genesis_custom_loop(wp_parse_args($query_args, $args)); }
Thanks for the snippet, but how can I show custom field values inside the loop?
I have: $args= array(‘orderby’ => ‘title’, ‘meta_key’ => ‘comp_offers’ , ‘meta_value’ => $compID, ‘end_date’, ‘order’ => ‘DES’);
And next to the thumbnail I want to show the value of 2 different custom fields (company_link AND company_offers)