// custom genesis loop with the above query parameters and hooks. genesis_custom_loop( $args ); global $wp_query; // var_dump($wp_query->post_count); if ( 0 !== $wp_query->post_count ) { printf( 'More results', trailingslashit( home_url() ) . '?s=' . $s . '&post_type=' . $post_type ); }