Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <?php
  2. remove_action( 'genesis_loop', 'genesis_do_loop' );
  3. add_action( 'genesis_loop', 'your_custom_loop' );
  4.  
  5. // Remove custom structural wraps.
  6. remove_action( 'genesis_before_content_sidebar_wrap', 'studio_wrap_open', 6 );
  7. remove_action( 'genesis_after_content_sidebar_wrap', 'studio_wrap_close', 13 );
  8.  
  9. function your_custom_loop() {
  10.  
  11. if(have_posts()) : while(have_posts()) : the_post();
  12.  
  13. echo '<article class="entry">';
  14.  
  15. echo '<div class="entry-content">';
  16.  
  17.  
  18. echo '<div class="won_by">';
  19. get_field('team_won_by_x_runs');
  20. echo '</div>';
  21.  
  22.  
  23. echo '<ul class="tvst">';
  24.  
  25. echo '<li class="team1">';
  26.  
  27. echo '<img src="' . get_field('team_1_photo') . '" alt="" />';
  28.  
  29. echo '<span class="runswwickets">' . get_field('team_1_runs_wickets') . '</span>';
  30.  
  31. echo '</li>';
  32.  
  33. echo '<li class="vs">';
  34.  
  35. echo '<h3 class="teamname">' . get_field('team_1') . '</h3>';
  36.  
  37. echo '<em class="vs">' . VS . '</em>';
  38.  
  39. echo '<h3 class="teamname">' . get_field('team_2') . '</h3>';
  40.  
  41. echo '<div class="date-venue">';
  42.  
  43. echo '<div class="date">';
  44. get_field('date'); echo '<em>(GMT+2)</em>';
  45. echo '</div>';
  46.  
  47. echo '<div class="venue">';
  48. get_field('venue');
  49. echo '</div>';
  50.  
  51. echo '</li>';
  52.  
  53. echo '<li class="team2">';
  54.  
  55. echo '<img src="' . get_field('team_2_photo') . '" alt="" />';
  56.  
  57. echo '<span class="runswwickets">' . get_field('team_2_runs_wickets') . '</span>';
  58.  
  59. echo '</li>';
  60.  
  61. echo '</ul>';
  62.  
  63. echo '</div>';
  64.  
  65. echo '</div>';
  66. echo '</article>';
  67.  
  68. endwhile; endif;
  69.  
  70. }
  71.  
  72. genesis();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement