HEX
Server: LiteSpeed
System: Linux server019.our-control-panel.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: aashishs (1103)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/aashishs/manishjhanepal.com.np/wp-content/themes/nm_portfolio/taxonomy-career.php
<!-- <pre> -->
<?php get_header(); 
 ?>




			<section class="ftco-section ftco-bread">
				<div class="container">
					<div class="row no-gutters slider-text justify-content-center align-items-center">
	          <div class="col-md-8 ftco-animate">
	            <p class="breadcrumbs">
					<span class="mr-2"><a href="<?php echo get_home_url() ?>">Home</a></span> <span>></span> 
					<span> My Journey</span></p>
                <h1 class="bread"><?php echo the_title() ?></h1>

                
	          </div>
	        </div>
				</div>
			</section>
			<section class="ftco-section-2">
                <div class="container">

                              <?php
                $terms = get_terms(
                    array(
                    'taxonomy' => 'career',
                    'hide_empty' => false,
                ));
                ?>
                 <p class="breadcrumbs">
                    <?php foreach($terms as $term){ ?>
                        <a href="<?php echo get_term_link($term)?>" class="btn"><?php echo $term->name ?></a>
                    <?php } ?>
                    </p>

                </div>
	      <div class="container">

            <?php $count = 0 ; ?>


<?php
$args = array(  
        'post_type' => 'journey',
        'post_status' => 'publish',
        'tax_query' => array(
                    array(
                        'taxonomy' => 'career',
                        'field' => 'slug',
                        'terms' => get_queried_object()->slug
                    )
                    ),
        'posts_per_page' => 8 , 
       
    );
    $loop = new WP_Query( $args ); 
?>

            <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
                <div class="row">
                <?php if($count%2 == 0){ ?>
                    <div class="col-md-5">
                        <a href="<?php echo get_permalink() ?>">
                            <img src="<?php echo get_the_post_thumbnail_url()  ?>" alt="" class="img-fluid">
                        </a>
                    </div>
                <?php } ?>

                    <div class="col-md-6">
                        <div class="media-body p-2 mt-2">
                            <h3 class="heading mb-3"><?php print the_title();  ?></h3>
                            <p><?php the_content();  ?></p>
                            <a href="<?php echo get_permalink() ?>">Read More</a>
                            
                        </div>
                    </div>  
                      <?php if($count%2 != 0){ ?>
                    <div class="col-md-5">
                        <a href="<?php echo get_permalink() ?>">
                            <img src="<?php echo get_the_post_thumbnail_url()  ?>" alt="" class="img-fluid">
                        </a>
                    </div>
                <?php } ?>    
                </div>     
            <hr/> 
        
            <?php
            
            $count++ ;
            endwhile;            
            wp_reset_postdata();  
            
            ?>

   
	    </section>
<?php get_footer(); ?>