Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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( '<a href="%s">More results</a>', trailingslashit( home_url() ) . '?s=' . $s . '&post_type=' . $post_type );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement