Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Search Page chuyen muc 1
- */
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
- global $king;
- get_header();
- ?>
- <?php $king->breadcrumb(); ?>
- <div id="primary" class="site-content container-content content ">
- <div id="content" class="row row-content container">
- <div class="col-md-9">
- <?php
- if (isset($_GET["cat"]) && isset($_GET["s"])) {
- $catId = $_GET["cat"];
- $args = array(
- 'cat' => $catId,
- 's' =>$string
- );
- // The Query
- $the_query = new WP_Query( $args );
- ?>
- <?php if ( have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php
- get_template_part( 'content' );
- ?>
- <?php endwhile; ?>
- <?php king::pagination(); ?>
- <?php else : ?>
- <br />
- <article id="post-0" class="post no-results not-found">
- <header>
- <h3 class="widget-title">
- <?php _e( 'Nothing Found', 'arkahost' ); ?>
- </h3>
- </header><!-- .entry-header -->
- <div class="entry-content">
- <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'arkahost' ); ?></p>
- <?php get_search_form(); ?>
- </div><!-- .entry-content -->
- </article><!-- #post-0 -->
- <?php endif; } ?>
- </div>
- <div class="col-md-3">
- <?php if ( is_active_sidebar( 'sidebar' ) ) : ?>
- <div id="sidebar" class="widget-area king-sidebar">
- <?php dynamic_sidebar( 'sidebar' ); ?>
- </div><!-- #secondary -->
- <?php endif; ?>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment