PATH:
home
/
lab2454c
/
carbonbullion.net
/
wp-content
/
themes
/
carbon-bullion
<?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="image__box"> <img src="<?php the_field('detail_page_banner_image', 'option'); ?>" alt="" /> </div> <div class="banner__content"> <div class="container"> <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 blog__wrapp__details"> <div class="container"> <?php while ( have_posts() ) : the_post(); ?> <div class="row"> <div class="col-xl-8 col-lg-8 col-md-8 mr__bottom"> <div class="blog__item blog__item__details"> <?php if ( has_post_thumbnail() ) { ?> <div class="image__box"> <?php the_post_thumbnail(); ?> </div> <?php } ?> <div class="blog__content"> <h2><?php the_title(); ?></h2> <div class="item__meta"><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></div> <div class="item__content"> <?php the_content();?> </div> </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; ?> </div> </div> <?php endwhile; // End of the loop. wp_reset_postdata(); ?> <div class="col-xl-4 col-lg-4 col-md-4"> <div class="blog__item blog__item__side__bar"> <div class="serach__wrapp"> <h3>Search</h3> <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' ); ?>" /> <!-- <input type="hidden" name="post_type" value="post" /> --> <input type="submit" id="searchsubmit" value="" class="btn__search" /> </div> </form> </div> <div class="recent__blog"> <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(); ?><span><?php echo get_the_date( 'F d, Y', get_the_ID() ); ?></span></a> </li> <?php endwhile; wp_reset_query(); endif;?> </ul> </div> </div> </div> <?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="pagination__wrapp"> <a href="<?php echo $permalink;?>"> <span><i class="ico__box"><img src="<?php echo get_template_directory_uri(); ?>/assets/arrow-blog-right.png" alt="" /></i>Previous Post</span> <h3><?php echo $prev_post->post_title; ?></h3> </a> <a href="<?php echo $npermalink;?>"> <span>Next Post<i class="ico__box"><img src="<?php echo get_template_directory_uri(); ?>/assets/arrow-blog-right.png" alt="" /></i></span> <h3><?php echo $next_post->post_title; ?></h3> </a> </div> </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]