PATH:
home
/
lab2454c
/
public_html
/
wp-content
/
themes
/
veritserv
<?php /** * Template Name: Blog Page */ get_header(); ?> <?php if(get_field('banner_image')){ ?> <div class="header__banner__main header__banner__main__inner"> <div class="header__banner___overlay"></div> <div class="image__box"> <img src="<?php the_field('banner_image') ?>" alt="" /> </div> <div class="banner__content"> <div class="container"> <div class="banner__container__inner"> <?php if(get_field('banner_highlighted_title')){ ?> <h1><?php the_field('banner_highlighted_title') ?> <span><?php the_field('banner_non-highlighted_title') ?></span> </h1> <?php } ?> <?php if(get_field('banner_content')){ ?> <p><?php the_field('banner_content') ?></p> <?php } ?> </div> </div> </div> </div> <?php } ?> <div class="body__container__wrapp__inner"> <div class="news__wrap"> <div class="container"> <div class="row"> <div class="col-xl-8 col-lg-8 col-md-7"> <?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 ); $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="news__item mr__top"> <?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="news__containt"> <h2><a href="<?php echo the_permalink();?>"><?php the_title(); ?></a></h2> <div class="news__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> <p><?php echo the_excerpt();?></p> <div class="read__more"><a href="<?php echo the_permalink();?>">Read More</a></div> </div> </div> <?php endwhile; ?> <nav class="pagination"> <?php pagination_bar( $ser_query ); ?> </nav> <?php wp_reset_query(); endif;?> </div> <div class="col-xl-4 col-lg-4 col-md-5 mr__top"> <div class="side__bar__wrap"> <div class="search__wrap"> <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div class="form-group form__group"> <input type="search" class="form-control form__control" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'wp-bootstrap-starter' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php _ex( 'Search Newsroom...', 'label', 'wp-bootstrap-starter' ); ?>"> <button type="submit" class="btn btn-default submit__btn"><i class="ico__box"><img src="<?php echo get_template_directory_uri(); ?>/inc/assets/images/search-icon.svg" alt="" /></i></button> </div> </form> </div> <div class="related__news"> <h3>FEATURED</h3> <ul> <?php $args = array( 'post_type' => 'post',// your post type, 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 6, ); $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(); ?> <li> <a href="<?php echo the_permalink();?>"><?php the_title(); ?> <div class="news__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> </a> </li> <?php endwhile; wp_reset_query(); endif;?> </ul> </div> </div> </div> </div> </div> </div> <?php $post_object = get_field('add_global_signup_section'); if( $post_object ): $post = $post_object; setup_postdata( $post ); echo get_template_part( 'template', 'global' ); wp_reset_postdata(); endif; ?> <?php get_footer(); ?>
[+]
woocommerce
[-] template-crypthorize.php
[edit]
[-] footer-widget.php
[edit]
[-] search.php
[edit]
[-] template-cryptocurrency.php
[edit]
[-] template-cryptoecommerce.php
[edit]
[-] index.php
[edit]
[-] woocommerce.php
[edit]
[-] page.php
[edit]
[-] searchform.php
[edit]
[-] template-globalecommerce.php
[edit]
[+]
..
[-] template-cryptoretail.php
[edit]
[-] template-support.php
[edit]
[-] sidebar.php
[edit]
[-] rtl.css
[edit]
[-] blank-page-with-container.php
[edit]
[-] single.php
[edit]
[-] footer.php
[edit]
[-] template-about.php
[edit]
[-] template-home.php
[edit]
[-] .DS_Store
[edit]
[-] blank-page.php
[edit]
[-] left-sidebar.php
[edit]
[-] header.php
[edit]
[-] style.css
[edit]
[-] 404.php
[edit]
[-] single-attachment.php
[edit]
[-] screenshot.png
[edit]
[-] custom-editor-style.css
[edit]
[-] functions.php
[edit]
[-] template-global.php
[edit]
[-] archive.php
[edit]
[-] fullwidth.php
[edit]
[-] error_log
[edit]
[+]
template-parts
[-] comments.php
[edit]
[-] template-services.php
[edit]
[-] template-globalretail.php
[edit]
[-] template-contact.php
[edit]
[+]
inc
[-] template-blog.php
[edit]
[-] woocommerce-old.php
[edit]