Guest User

Untitled

a guest
Jan 5th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <?php
  4. /**
  5. *
  6. * @link https://codex.wordpress.org/Template_Hierarchy
  7. *
  8. * @package Gamer_Meld
  9. * recent posts
  10. */
  11.  
  12. get_header();
  13. $comm_link = '<image src="http://localhost/wordpress/wp-
  14. content/uploads/2017/01/speech2.png" class="comment_image">';
  15. ?><div class= comment1> <?php $comm_word = '0';?> </div>
  16.  
  17.  
  18. <div class="new_home_wrap">
  19. <div class="gap-2"></div>
  20. <h3 class="nk-decorated-h-2">
  21. <span>
  22. Recent <span class="text-main-1">Posts </span> </span>
  23.  
  24. </h3>
  25. <div class="gap"></div>
  26.  
  27.  
  28.  
  29. <div class="new_home_single">
  30. <ul>
  31. <?php $the_query = new WP_Query( 'posts_per_page=6' ); ?>
  32.  
  33. <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
  34. <div class="posting_classs">
  35. <a href="<?php the_permalink()?>">
  36. <?php
  37. /***** Thumbnail ******/
  38. the_post_thumbnail(
  39. array(280, 150),
  40. array(
  41.  
  42. 'class' => 'thumbnail_class', //custom class for post thumbnail if any
  43. 'alt' => 'post thumbnail', //post thumbnail alternate title
  44. 'title' => 'my custom title' //Title of thumbnail
  45. )
  46. );?></a>
  47.  
  48. <div id="post-<?php the_ID(); ?>" <?php post_class( 'post_box' ); ?>>
  49.  
  50.  
  51. <h2 class="title_home"><a href="<?php the_permalink() ?>">
  52. <?php echo ShortenText(get_the_title()) ; ?></a></h2>
  53.  
  54. <div class="date_wrap"><p class="date1"><?php the_date('m-d-Y', '', ''); ?></p></div>
  55.  
  56. <div class="comment_wrap"> <?php comments_popup_link("$comm_word $comm_link", "1 $comm_link", "% $comm_link"); ?></div>
  57.  
  58. <p class="excerpt_class"> <?php echo the_excerpt(25); ?></p>
  59.  
  60. </div>
  61. </div>
  62.  
  63. <?php
  64. endwhile;
  65. wp_reset_postdata();
  66. ?>
  67. </ul>
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. </div>
  75.  
  76. <div class="gap-2"></div>
  77. <h3 class="nk-decorated-h-2">
  78. <span>
  79. New <span class="text-main-1">Videos </span> </span>
  80.  
  81. </h3>
  82. <div class="gap"></div>
  83.  
  84.  
  85. <div class="video_class"><?php echo do_shortcode("[yottie id='1']"); ?></div>
  86.  
  87. </div>
  88. </div>
  89.  
  90.  
  91.  
  92. <div class="sidebar1"><?php dynamic_sidebar( 'sidebar-1' );?></div>
  93. <?php
  94. get_footer();
  95. ?></div>
Advertisement
Add Comment
Please, Sign In to add comment