PATH:
home
/
lab2454c
/
gemiton.com
/
wp-content
/
themes
/
divine_saint
<?php /** * Template Name: Blog Page */ get_header(); ?> <div class="header__banner__main header__banner__inner"> <div class="header__banner___overlay"></div> <?php if ( has_post_thumbnail() ) { ?> <div class="image__box"> <?php the_post_thumbnail(); ?> </div> <?php } ?> <div class="banner__content"> <div class="container"> <div class="banner__container__inner"> <h1><?php the_title();?></h1> </div> </div> </div> </div> <div class="body__container__wrapp body__container__inner"> <div class="blog__wrap"> <div class="container"> <div class="row"> <?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'post_type' => 'post',// your post type, 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 9, 'paged' => $paged ); //$args = ['post_type' => 'post', 'posts_per_page' => 3, 'post_status' => 'publish', 'orderby' => 'date']; $ser_query = new Wp_Query($args); $ser_query->found_posts; $post_tags = get_the_tags(); if (have_posts()): while ($ser_query->have_posts()): $ser_query->the_post(); ?> <div class="col-xl-4 col-lg-4 col-md-6 mr__top"> <div class="blog__item__wrap"> <?php if(has_post_thumbnail(get_the_ID())){?> <div class="image__box"> <a href="<?php echo the_permalink();?>"><?php the_post_thumbnail();?></a> </div> <?php } ?> <div class="content__wrap"> <h2><a href="<?php echo the_permalink();?>"><?php the_title(); ?></a></h2> <div class="blog__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> <?php echo the_excerpt();?> <div class="read__more"><a href="<?php echo the_permalink();?>">Read More</a></div> </div> </div> </div> <?php endwhile; ?> <nav class="pagination"> <?php pagination_bar( $ser_query ); ?> </nav> <?php wp_reset_query(); endif;?> </div> </div> </div> </div> <?php get_footer(); ?>
[+]
woocommerce
[-] footer-widget.php
[edit]
[-] search.php
[edit]
[-] index.php
[edit]
[-] page.php
[edit]
[-] searchform.php
[edit]
[+]
..
[-] sidebar.php
[edit]
[-] template-rough.php
[edit]
[-] rtl.css
[edit]
[-] woocommerce-new-old.php
[edit]
[-] blank-page-with-container.php
[edit]
[-] single.php
[edit]
[-] footer.php
[edit]
[-] template-about.php
[edit]
[-] template-home.php
[edit]
[-] template-polished.php
[edit]
[-] .DS_Store
[edit]
[-] blank-page.php
[edit]
[-] left-sidebar.php
[edit]
[-] header.php
[edit]
[-] style.css
[edit]
[-] template-service.php
[edit]
[-] 404.php
[edit]
[-] readme.txt
[edit]
[-] single-attachment.php
[edit]
[-] screenshot.png
[edit]
[-] custom-editor-style.css
[edit]
[-] functions.php
[edit]
[-] archive.php
[edit]
[-] fullwidth.php
[edit]
[+]
template-parts
[-] comments.php
[edit]
[-] template-contact.php
[edit]
[+]
inc
[-] template-blog.php
[edit]
[-] woocommerce-old.php
[edit]