Guest User

Untitled

a guest
Jul 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  2.  
  3. <div class="content">
  4. <div class="white-block white-bg shadow">
  5.  
  6. <div class="col-md-12">
  7. <div class="row">
  8.  
  9. <div class="col-md-9 order-md-last">
  10. <div class="col-md-12 text-block light-grey">
  11.  
  12.  
  13. <h1><?php the_title(); ?><br />
  14. <small><?php edit_post_link(); ?></small>
  15. <?php the_category(); ?>
  16. </h1>
  17.  
  18. <?php the_content(); ?>
  19.  
  20. <?php
  21. $query = new WP_Query( array( 'post_type' => 'faq', 'cat' => $cat_id, 'posts_per_page' => '3', 'post_status'=>published,) );
  22. while ( $query->have_posts() ) : $query->the_post();
  23. ?>
  24.  
  25. <a href="<? the_permalink(); ?>" class="list-group-item list-group-item-action ">
  26. <div class="col-12">
  27. <div class="row">
  28.  
  29. <h5><?php the_title(); ?></h5>
  30.  
  31. </div>
  32. <div class="row">
  33. <small><?php the_date(); ?></small>
  34.  
  35. </div>
  36. </div>
  37. <p class="mb-1">
  38. <?php echo(get_the_excerpt()); ?></p>
  39. </a>
  40.  
  41.  
  42. <?php endwhile; ?>
  43.  
  44.  
  45. <?php wp_link_pages(); ?>
  46.  
  47.  
  48. <h3> FAQ </h3>
  49.  
  50.  
  51. <?php wp_reset_query(); ?>
  52.  
  53. <?php
  54. $query = new WP_Query( array( 'post_type' => 'faq', 'cat' => $cat_id, 'posts_per_page' => '3', 'post_status'=>published,) );
  55. while ( $query->have_posts() ) : $query->the_post();
  56. ?>
  57.  
  58. <a href="<? the_permalink(); ?>" class="list-group-item list-group-item-action ">
  59. <div class="col-12">
  60. <div class="row">
  61.  
  62. <h5><?php the_title(); ?></h5>
  63.  
  64. </div>
  65. <div class="row">
  66. <small><?php the_date(); ?></small>
  67.  
  68. </div>
  69. </div>
  70. <p class="mb-1">
  71. <?php echo(get_the_excerpt()); ?></p>
  72. </a>
  73.  
  74.  
  75. <?php endwhile; ?>
Add Comment
Please, Sign In to add comment