Advertisement
realestateradio

Untitled

Nov 17th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. //* Add Genesis grid loop
  5. remove_action( 'genesis_loop', 'genesis_do_loop' );
  6. add_action( 'genesis_loop', 'eleven40_grid_loop_helper' );
  7. function eleven40_grid_loop_helper() {
  8.  
  9. if ( function_exists( 'genesis_grid_loop' ) ) {
  10. genesis_grid_loop( array(
  11. 'features' => 100,
  12. 'feature_image_size' => 'thumbnail',
  13. 'feature_image_class' => 'alignleft post-image',
  14. 'feature_content_limit' => 0,
  15. 'grid_image_size' => 'grid-featured',
  16. 'grid_image_class' => 'grid-featured',
  17. 'grid_content_limit' => 0,
  18. 'more' => __( '[Continue Reading]', 'eleven40' ),
  19. ) );
  20. } else {
  21. genesis_standard_loop();
  22. }
  23.  
  24. }
  25.  
  26. //* Run the Genesis loop
  27.  
  28.  
  29. genesis();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement