Advertisement
srikat

Untitled

Jun 14th, 2017
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // custom genesis loop with the above query parameters and hooks.
  2. genesis_custom_loop( $args );
  3.  
  4. global $wp_query;
  5.  
  6. // var_dump($wp_query->post_count);
  7.  
  8. if ( 0 !== $wp_query->post_count ) {
  9. printf( '<a href="%s">More results</a>', trailingslashit( home_url() ) . '?s=' . $s . '&post_type=' . $post_type );
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement