Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <div class="most-recent-feed">
  2. <?php
  3. if ( have_posts() ) :
  4. if ( is_home() && ! is_front_page() ) : ?>
  5. <header>
  6. <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
  7. </header>
  8. <?php
  9. endif;
  10. $post_ranking = 1;
  11. /* Start the Loop */
  12. while ( have_posts() ) : the_post();
  13. ?> <h1> <?php echo $post_ranking ?> </h1> <?php
  14. /*
  15. * Include the Post-Format-specific template for the content.
  16. * If you want to override this in a child theme, then include a file
  17. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  18. */
  19. get_template_part( 'template-parts/content', get_post_format() );
  20. endwhile;
  21. the_posts_navigation();
  22. else :
  23. get_template_part( 'template-parts/content', 'none' );
  24. endif;
  25. wp_reset_query();
  26.  
  27. ?>
  28. </div>
  29.  
  30. <div class="album-dark-overlay play">
  31. <div class="ranking-triangle">
  32. <!-- Ranking number should be placed here -->
  33. </div>
  34. <div id="<?php echo $youtube_id ?>" data-youtube-id="<?php echo $youtube_id ?>" class="media-circle">
  35. <i class="icon ion-ios-play"></i><i class="icon ion-pause"></i>
  36. </div>
  37. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement