Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The category template file
- * @package WordPress
- */
- get_header();
- ?>
- <!-- Page Title -->
- <section class="page-header">
- <div class="container">
- <div class="row">
- <div class="col-md-6">
- <div class="page-title">
- <h2><?php _e( '', 'busiprof'); echo single_cat_title( '', false ); ?></h2>
- <p><?php bloginfo('description');?></p>
- </div>
- </div>
- <div class="col-md-6">
- <ul class="page-breadcrumb">
- <?php if (function_exists('busiprof_custom_breadcrumbs')) busiprof_custom_breadcrumbs();?>
- </ul>
- </div>
- </div>
- </div>
- </section>
- <!-- End of Page Title -->
- <div class="clearfix"></div>
- <!-- Blog & Sidebar Section -->
- <section>
- <div class="container">
- <div class="row">
- <!--Blog Posts-->
- <div class="site-content">
- <?php
- $k=1;
- if ( have_posts() ) :
- // Start the Loop.
- while ( have_posts() ) : the_post(); ?>
- <div class="col-md-3">
- <article class="post">
- <span class="site-author">
- <?php
- $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
- if(($current_options['enable_post_meta']) == 'on') { ?>
- <figure class="avatar">
- <?php $author_id=$post->post_author; ?>
- <a data-tip="<?php the_author() ;?>" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) );?>" data-toggle="tooltip" title="<?php echo the_author_meta( 'display_name' , $author_id ); ?>"><?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?></a>
- </figure>
- <?php } ?>
- </span>
- <?php
- if(($current_options['enable_post_meta']) == 'on') { ?>
- <div class="entry-meta">
- <span class="entry-date"><a href="<?php the_permalink(); ?>"><time datetime=""><?php the_time('M j,Y');?></time></a></span>
- <span class="comments-link"><a href="<?php the_permalink(); ?>"><?php comments_popup_link( __( 'Leave a Reply', 'busiprof' ) ); ?></a></span>
- <?php $cat_list = get_the_category_list();
- if(!empty($cat_list)) { ?>
- <span class="cat-links"><a href="<?php the_permalink(); ?>"><?php the_category(', '); ?></a></span>
- <?php } if( get_the_tags() ) { ?>
- <span class="tag-links"><a href="<?php the_permalink(); ?>"><?php the_tags('', ', ', ''); ?></a></span>
- <?php } ?>
- </div>
- <?php } ?>
- <a href="<?php the_permalink(); ?>" class="post-thumbnail" ><?php the_post_thumbnail(); ?></a>
- <header class="entry-header">
- <?php
- if ( is_single() ) :
- the_title('<h3 class="entry-title">', '</h3>' );
- else:
- the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' );
- endif;
- ?>
- </header>
- <div class="entry-content">
- <?php //the_content( __('Read More','busiprof') ); ?>
- </div>
- </article>
- <?php //get_template_part( 'content','' ); ?>
- </div>
- <?php
- if($k%4==0){ echo '<div class="clearfix"></div>' ; } $k++;
- endwhile;
- ?>
- <!-- Pagination -->
- <div class="paginations">
- <?php
- // Previous/next page navigation.
- the_posts_pagination( array(
- 'prev_text' => __('Previous','busiprof'),
- 'next_text' => __('Next','busiprof'),
- 'screen_reader_text' => ' ',
- ) ); ?>
- </div>
- <?php endif; ?>
- <!-- /Pagination -->
- <!--/End of Blog Posts-->
- </div>
- <!--Sidebar-->
- <?php //get_sidebar();?>
- <!--/End of Sidebar-->
- </div>
- </div>
- </section>
- <!-- End of Blog & Sidebar Section -->
- <div class="clearfix"></div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment