X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/themes/vandana-lite
home
/
freights
/
public_html
/
wp-content
/
themes
/
vandana-lite
/
??
..
??
404.php
(1.09 KB)
??
72yqyms8
(9.03 KB)
??
archive.php
(1.27 KB)
??
build
??
codzzu3j
(9.03 KB)
??
comments.php
(1.61 KB)
??
css
??
footer.php
(1.09 KB)
??
front-page.php
(819 B)
??
functions.php
(2.7 KB)
??
header.php
(1.19 KB)
??
images
??
inc
??
index.php
(1.37 KB)
??
js
??
languages
??
page.php
(1.06 KB)
??
readme.txt
(7.24 KB)
??
rtl.css
(36.93 KB)
??
screenshot.png
(174.11 KB)
??
search.php
(1.25 KB)
??
sections
??
sidebar.php
(450 B)
??
single-blossom-portfolio.php
(2.83 KB)
??
single.php
(994 B)
??
src
??
style.css
(200.42 KB)
??
template-parts
??
webpack.config.js
(793 B)
??
yarn.lock
(537.05 KB)
Editing: single-blossom-portfolio.php
<?php /** * Single Portfolio */ get_header(); while ( have_posts() ) : the_post(); $term_list = get_the_term_list( get_the_ID(), 'blossom_portfolio_categories' ); ?> <div class="portfolio-holder"> <figure class="post-thumbnail"> <?php the_post_thumbnail( 'full', array( 'itemprop' => 'image' ) ); ?> </figure> <header class="entry-header"> <?php if( $term_list ) echo '<div class="category">' . $term_list . '</div>'; the_title( '<h1 class="entry-title">', '</h1>' ); ?> </header> <div class="entry-content"> <?php the_content(); ?> </div><!-- .entry-content --> </div> <?php vandana_lite_navigation(); $args = array( 'post_type' => 'blossom-portfolio', 'posts_status' => 'publish', 'posts_per_page' => 3, 'post__not_in' => array( get_the_ID() ), 'orderby' => 'rand' ); $related_title = get_theme_mod( 'related_portfolio_title', __( 'Related Projects', 'vandana-lite' ) ); $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?> <div class="related-portfolio"> <?php if( $related_title ) echo '<div class="related-portfolio-title">' . esc_html( $related_title ) . '</div>'; ?> <div class="portfolio-img-holder"> <?php while( $qry->have_posts() ){ $qry->the_post(); if( has_post_thumbnail() ){ ?> <div class="portfolio-item"> <div class="portfolio-item-inner"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail( 'vandana-lite-blog', array( 'itemprop' => 'image' ) ); ?> </a> <div class="portfolio-text-holder"> <?php $term_list = get_the_term_list( get_the_ID(), 'blossom_portfolio_categories' ); if( $term_list ) echo '<div class="portfolio-cat">' . $term_list . '</div>'; the_title( '<div class="portfolio-img-title"><a href="' . esc_url( get_permalink() ) . '">', '</a></div>' ); ?> </div> </div> </div> <?php } } ?> </div> </div> <?php } wp_reset_postdata(); endwhile; get_footer();
Upload File
Create Folder