Sindbad~EG File Manager

Current Path : /var/www/quickscrum.com/Old-Guide/wp-content/themes/flatbase-child/
Upload File :
Current File : /var/www/quickscrum.com/Old-Guide/wp-content/themes/flatbase-child/archive-solution.php

<?php
/**
 * Flatbase by NiceThemes.
 *
 * Used to display archive-type pages if nothing more specific matches a query. For example, puts
 * together date-based pages if no date.php file exists.
 *
 * If you'd like to further customize these archive views, you may create a new template file for
 * each specific one. For example, we already have tag.php for Tag archives and a category.php for
 * Category archives.
 *
 * @link      http://codex.wordpress.org/Template_Hierarchy
 *
 * @package   Flatbase
 * @author    NiceThemes <hello@nicethemes.com>
 * @license   GPL-2.0+
 * @link      http://nicethemes.com/theme/flatbase
 * @copyright 2016 NiceThemes
 * @since     1.0.0
 */
// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}
get_header();
global $nice_options;
?>
<!-- BEGIN #content -->
<!--<section id="content" <?php //nice_content_class( 'main-content' );  ?> role="main">-->
<section class="cat_desc">
    <div class="cat_desc_heading">
        Product Solutions
    </div>
    <div class="cat_desc_text">
    	<?php 
			global $wp_post_types;
			$post_type = 'solution';
			$description = $wp_post_types[$post_type]->description;
 		?>
        <p><?php echo $description; ?></p>
    	<!--<p>Agile and Scrum centric features that helps you to manage your project effectively.</p>-->
   	</div>
</section>
<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>
<section <?php nice_content_class('main-content'); ?> role="main">
    <div class="product-solutions-main nice-knowledgebase clearfix ">
	<?php
        $custom_terms = get_terms('category');
        foreach($custom_terms as $custom_term) {
            wp_reset_query();
            $args = array('post_type' => 'solution',
                'tax_query' => array(
                    array(
                        'taxonomy' => 'category',
                        'field' => 'slug',
                        'terms' => $custom_term->slug
                    ),
                ),
                'orderby' => 'date', 
                'order' => 'ASC'
             );
    
            $loop = new WP_Query($args);
            if($loop->have_posts()) {
                ?>
                <div class="row clearfix product-solutions-index">
                <div class="product-solutions-canvas product-solutions-container">
                <div class="cat_post_canvas_inner">
                    <div class="columns-1">
                        <h1 class="page_cat_title"><?php echo $custom_term->name; ?> </h1>
                        <div class="features-cat-desc"><?php echo $custom_term->description ; ?></div> 
                    </div>
                    <?php
                  	while($loop->have_posts()) : $loop->the_post(); ?>
                    <div class="columns-3">
                    	<div class="product-solutions-inner">
                        	<a class="more-link" href="https://guide.quickscrum.com/solution/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>">
                                <div class="ps-title">
                                    <?php echo get_the_title(); ?>
                                </div>
                                <div class="ps-text">
                                    <?php echo the_excerpt(); ?>
                                </div>
                                <div class="ps-download">
                                    <a class="more-link" href="https://guide.quickscrum.com/solution/<?php echo $post_slug = get_post_field( 'post_name', get_post() ); ?>"><strong class="moreTxt">more</strong><img src="<?php echo get_stylesheet_directory_uri() ?>/images/more-btn.jpg"/> </span> </a>
                                </div>
                           	</span>
                       	</div>
                    </div>
                    <?php
                    endwhile;
                    ?>
                </div>
                </div>
                </div>
		<?php } ?>
    <?php } ?>
	</div>
</section>
<?php
get_footer();

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