Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <div class="content">
- <div class="white-block white-bg shadow">
- <div class="col-md-12">
- <div class="row">
- <div class="col-md-9 order-md-last">
- <div class="col-md-12 text-block light-grey">
- <h1><?php the_title(); ?><br />
- <small><?php edit_post_link(); ?></small>
- <?php the_category(); ?>
- </h1>
- <?php the_content(); ?>
- <?php
- $query = new WP_Query( array( 'post_type' => 'faq', 'cat' => $cat_id, 'posts_per_page' => '3', 'post_status'=>published,) );
- while ( $query->have_posts() ) : $query->the_post();
- ?>
- <a href="<? the_permalink(); ?>" class="list-group-item list-group-item-action ">
- <div class="col-12">
- <div class="row">
- <h5><?php the_title(); ?></h5>
- </div>
- <div class="row">
- <small><?php the_date(); ?></small>
- </div>
- </div>
- <p class="mb-1">
- <?php echo(get_the_excerpt()); ?></p>
- </a>
- <?php endwhile; ?>
- <?php wp_link_pages(); ?>
- <h3> FAQ </h3>
- <?php wp_reset_query(); ?>
- <?php
- $query = new WP_Query( array( 'post_type' => 'faq', 'cat' => $cat_id, 'posts_per_page' => '3', 'post_status'=>published,) );
- while ( $query->have_posts() ) : $query->the_post();
- ?>
- <a href="<? the_permalink(); ?>" class="list-group-item list-group-item-action ">
- <div class="col-12">
- <div class="row">
- <h5><?php the_title(); ?></h5>
- </div>
- <div class="row">
- <small><?php the_date(); ?></small>
- </div>
- </div>
- <p class="mb-1">
- <?php echo(get_the_excerpt()); ?></p>
- </a>
- <?php endwhile; ?>
Add Comment
Please, Sign In to add comment