Sindbad~EG File Manager

Current Path : /var/www/quickscrum.com/wp-content/themes/Quickscrum-child/
Upload File :
Current File : /var/www/quickscrum.com/wp-content/themes/Quickscrum-child/texonomy-sub-category.php

<?php
/**
 * Template Name: Sub Category Excert
 */
// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}

get_header();
?>

<!-- BEGIN #content -->
<section <?php nice_content_class('main-content'); ?> role="main">
    <header>
         <div class="headerSearch">
            <div class="hbreadcrumb">
                <?php echo custom_breadcrumbs(); ?>
            </div>
            <div class="hsearchform">
                <div id="search-wrap">
                    <form role="search" method="get" id="searchform" class="clearfix" action="<?php echo home_url('/'); ?>" autocomplete="off">
                        <div class="input">
                            <label for="s"><?php echo apply_filters('nice_livesearch_label', __('Have a question? Ask or enter a search term.', 'nicethemes')); ?></label>
                            <input placeholder="Have a question? Ask or enter a search term." type="text" name="s" id="s" />
                            <input type="submit" id="searchsubmit" value="&#xf002;" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </header>
    <h1 class="archive-header"><span class="cat"><?php echo get_the_category_by_ID($_REQUEST['id']); ?></span></h1>  
    <div class="nice-knowledgebase clearfix">
        <div class="row clearfix article-index">
            <?php
            
                    $category_id = $_REQUEST['id'];
                    $posts_array = array(
                        'showposts' => -1,
                        'post_type' => 'article',
                        'tax_query' => array(
                            array(
                                'taxonomy' => 'help',
                                'field' => term_id,
                                'terms' => $category_id,
                            )
                        )
                    );
                    $loop = new WP_Query($posts_array);

                    if ($loop->have_posts()) {
                        echo '<div class="columns-3"><header>';
                        echo '<h3><a href="#">' . $category->name . '</a></h3></header>';
                        echo '<ul class="category-posts">';
                        $i = 0;

                        while ($loop->have_posts()) : $loop->the_post();
                            ?>				
                            <li><i class="fa fa-file-o"></i>
                                <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                            </li>
                        <?php
                        endwhile;
                        echo '</ul>';
                        echo '</div>';
                    } else {
                        echo '<div class="columns-3"></div>';
                    }
                    $count++;
            ?>
        </div>
    </div>	
    <!-- END #content -->
</section>

<?php //get_sidebar();  ?>

<?php
get_footer();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists