PATH:
home
/
lab2454c
/
carbonbullion.net
/
wp-content
/
themes
/
carbon-bullion
<?php /** * Template Name: Blog Page */ get_header(); ?> <div class="header__banner__main header__banner__inner"> <?php if ( has_post_thumbnail() ) { ?> <div class="image_box"><?php the_post_thumbnail(); ?></div> <?php } ?> <div class="banner__content"> <div class="container-xl"> <div class="banner__content__inner"> <h1><?php the_title();?></h1> <div class="mid__circle"> <a href="#section1"><img src="<?php echo get_template_directory_uri(); ?>/inc/assets/images/circle.png"></a> </div> </div> </div> </div> </div> <div class="body__content__main body__containt__main__inner" id="section1"> <div class="blog__wrapp__main"> <div class="container-xl"> <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__bottom"> <div class="blog__item"> <?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="blog__content"> <h2><a href="<?php echo the_permalink();?>"><?php the_title(); ?></a></h2> <div class="item__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> <div class="item__content"> <p><?php echo the_excerpt();?></p> </div> <div class="item__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(); ?>
[-] template-knowledge.php
[edit]
[+]
woocommerce
[-] footer-widget.php
[edit]
[-] search.php
[edit]
[-] template-spot-price copy 1.php
[edit]
[-] index.php
[edit]
[-] page.php
[edit]
[-] searchform.php
[edit]
[+]
..
[-] template-faq.php
[edit]
[-] sidebar.php
[edit]
[-] template-sector.php
[edit]
[-] rtl.css
[edit]
[-] blank-page-with-container.php
[edit]
[-] template-investment.php
[edit]
[-] single.php
[edit]
[-] footer.php
[edit]
[-] template-about.php
[edit]
[-] template-home.php
[edit]
[-] template-spot-price.php
[edit]
[-] .DS_Store
[edit]
[-] template-partner.php
[edit]
[-] blank-page.php
[edit]
[-] left-sidebar.php
[edit]
[-] header.php
[edit]
[-] style.css
[edit]
[-] 404.php
[edit]
[-] readme.txt
[edit]
[-] template-spot-price copy 1.php.zip
[edit]
[-] single-attachment.php
[edit]
[-] woocommerce11.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-sponsor.php
[edit]
[-] template-contact.php
[edit]
[+]
inc
[-] template-blog.php
[edit]