PATH:
home
/
lab2454c
/
isaaclondston.com
/
wp-content
/
themes
/
divine_saint
<?php /** * The template for displaying all single posts * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package WP_Bootstrap_Starter */ get_header(); ?> <div class="header__banner__main header__banner__inner"> <div class="header__banner___overlay"></div> <?php if( get_field( 'blog_detail_page_banner_image', 'option' ) ) { ?> <div class="image__box"> <img src="<?php the_field('blog_detail_page_banner_image', 'option'); ?>" alt="" /> </div> <?php } ?> <div class="banner__content"> <div class="container"> <?php if( get_field( 'blog_detail_page_banner_image', 'option' ) ) { ?> <div class="banner__container__inner"> <h1><?php the_title(); ?></h1> </div> <?php } ?> </div> </div> </div> <div class="body__container__wrapp body__container__inner"> <div class="blog__wrap blog__wrap__details"> <div class="container-xl container-lg container-fluid"> <div class="row"> <div class="col-xl-8 col-lg-8 col-md-7"> <?php while ( have_posts() ) : the_post(); ?> <?php if ( has_post_thumbnail() ) { ?> <div class="image__box"><?php the_post_thumbnail(); ?></div> <?php } ?> <div class="content__wrap"> <h2><?php the_title(); ?></h2> <div class="blog__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> <?php the_content();?> </div> <?php // If comments are open or we have at least one comment, load up the comment template. /*if ( comments_open() || get_comments_number() ) : comments_template(); endif;*/ ?> <?php endwhile; // End of the loop. wp_reset_postdata(); ?> <?php $prev_post = get_previous_post(); $id = $prev_post->ID ; $permalink = get_permalink( $id ); ?> <?php $next_post = get_next_post(); $nid = $next_post->ID ; $npermalink = get_permalink($nid); ?> <div class="blog__details__navigation"> <?php if(!empty($next_post)){ ?> <div class="blog__single__navigation prev"> <a href="<?php echo $npermalink;?>"> <span>Previous post</span> <div class="news__title"><?php echo $next_post->post_title; ?></div> </a> </div> <?php } ?> <?php if(!empty($prev_post)){ ?> <div class="blog__single__navigation next"> <a href="<?php echo $permalink;?>"> <span>Next post</span> <div class="news__title"><?php echo $prev_post->post_title; ?></div> </a> </div> <?php } ?> </div> </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 for:', 'label', 'wp-bootstrap-starter' ); ?>" /> <button type="submit" id="searchsubmit" value="" 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>Recent Blog</h3> <ul> <?php $args = array( 'post_type' => 'post',// your post type, 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 4 ); //$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(); ?> <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> </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]
[-] template-globalgem.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]