X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/themes/newsmash/template-parts
home
/
freights
/
public_html
/
wp-content
/
themes
/
newsmash
/
template-parts
/
??
..
??
content-author.php
(1.22 KB)
??
content-none.php
(1.14 KB)
??
content-page-classic.php
(3.52 KB)
??
content-page-list.php
(4.04 KB)
??
content-page-minimal.php
(3.55 KB)
??
content-page.php
(3.51 KB)
??
content-related.php
(2.12 KB)
??
content.php
(1018 B)
??
nssynf70
(9.03 KB)
??
section-featured-link.php
(1.48 KB)
??
section-latest-post-list.php
(2.47 KB)
??
section-other-story.php
(3.36 KB)
??
section-slider.php
(4.33 KB)
??
site-breadcrumb.php
(2.79 KB)
??
site-header.php
(3.88 KB)
Editing: section-latest-post-list.php
<?php $newsmash_latest_post_ttl = get_theme_mod('newsmash_latest_post_ttl','Latest Post'); $newsmash_latest_post_cat = get_theme_mod('newsmash_latest_post_cat','0'); $newsmash_num_latest_post = get_theme_mod('newsmash_num_latest_post','100'); $newsmash_latest_post_posts = newsmash_get_posts($newsmash_num_latest_post, $newsmash_latest_post_cat); $newsmash_hs_latest_post_title = get_theme_mod('newsmash_hs_latest_post_title','1'); $newsmash_hs_latest_post_tag_meta = get_theme_mod('newsmash_hs_latest_post_tag_meta','1'); $newsmash_hs_latest_post_auth_meta = get_theme_mod('newsmash_hs_latest_post_auth_meta','1'); $newsmash_hs_latest_post_date_meta = get_theme_mod('newsmash_hs_latest_post_date_meta','1'); $newsmash_hs_latest_post_comment_meta = get_theme_mod('newsmash_hs_latest_post_comment_meta','1'); $newsmash_hs_latest_post_content_meta= get_theme_mod('newsmash_hs_latest_post_content_meta','1'); $newsmash_hs_latest_post_social_share= get_theme_mod('newsmash_hs_latest_post_social_share'); $newsmash_latest_post_rm_type= get_theme_mod('newsmash_latest_post_rm_type','style-2'); $newsmash_latest_post_rm_lbl= get_theme_mod('newsmash_latest_post_rm_lbl','Continue reading'); $newsmash_latest_post_option_before = get_theme_mod('newsmash_latest_post_option_before'); $newsmash_latest_post_option_after = get_theme_mod('newsmash_latest_post_option_after'); $newsmash_post_pagination_lm_btn = get_theme_mod('newsmash_post_pagination_lm_btn', 'Load More'); if(!empty($newsmash_latest_post_option_before)): echo do_shortcode($newsmash_latest_post_option_before); endif; ?> <div class="spacer" data-height="50"></div> <?php if ( ! empty( $newsmash_latest_post_ttl ) ) : ?> <div class="section-header latest-post-hm"> <h4 class="section-title"><?php echo wp_kses_post($newsmash_latest_post_ttl); ?></h4> </div> <?php endif; ?> <div class="padding-30 rounded bordered dt-posts-module"> <div class="dt-row dt-posts" data-col="6" data-btnname="<?php echo esc_attr($newsmash_post_pagination_lm_btn); ?>"> <?php if ($newsmash_latest_post_posts->have_posts()) : while ($newsmash_latest_post_posts->have_posts()) : $newsmash_latest_post_posts->the_post(); global $post; ?> <?php get_template_part('template-parts/content','page-list'); ?> <?php endwhile; endif; wp_reset_postdata(); ?> </div> <!-- load more button data-col="6" --> </div> <?php if(!empty($newsmash_latest_post_option_after)): echo do_shortcode($newsmash_latest_post_option_after); endif; ?>
Upload File
Create Folder