??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-content/themes/wise-news/single.php
⬅ Kembali
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Wise News
*/
get_header();
?>
<main id="primary" class="site-main">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'single' );
the_post_navigation(
array(
'prev_text' => '</span> <span class="nav-title">%title</span>',
'next_text' => '</span> <span class="nav-title">%title</span>',
)
);
if ( is_singular( 'post' ) ) {
$cat_content_id = get_the_category( $post->ID )[0]->term_id;
$args = array(
'cat' => $cat_content_id,
'posts_per_page' => absint( 3 ),
'post__not_in' => array( $post->ID ),
'orderby' => 'rand',
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) :
$related_title = get_theme_mod( 'wise_news_related_posts_title', __( 'Related Posts', 'wise-news' ) );
?>
<div class="related-posts">
<?php if ( ! empty( $related_title ) ) : ?>
<h2 class="related-title"><?php echo esc_html( $related_title ); ?></h2>
<?php endif; ?>
<div class="related-post-container">
<?php
while ( $query->have_posts() ) :
$query->the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="single-card-container grid-card">
<div class="single-card-image">
<a href="<?php the_permalink(); ?>"><?php wise_news_post_thumbnail(); ?></a>
</div>
<div class="single-card-detail">
<?php
the_title( '<h2 class="card-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
?>
<div class="post-exerpt">
<p><?php echo wp_kses_post( wp_trim_words( get_the_excerpt(), get_theme_mod( 'wise_news_excerpt_length', 15 ) ) ); ?></p>
</div><!-- post-exerpt -->
<div class="card-meta">
<span class="post-date"><?php wise_news_posted_on(); ?></span>
</div>
</div>
</div>
</article>
<?php
endwhile;
wp_reset_postdata();
?>
</div>
</div>
<?php
endif;
}
// 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;
endwhile; // End of the loop.
?>
</main><!-- #main -->
<?php
if ( wise_news_is_sidebar_enabled() ) {
get_sidebar();
}
get_footer();
Nama
Tipe
Ukuran
Diubah
Aksi
📁 assets
dir
—
2026-05-26 02:31
📁 inc
dir
—
2026-05-26 02:31
📁 languages
dir
—
2026-05-26 02:31
📁 template-parts
dir
—
2026-05-26 02:31
🐘 404.php
php
1.1 KB
2026-05-26 02:31
🐘 archive-restful.php
php
13.7 KB
2026-05-26 02:31
🐘 archive.php
php
1.7 KB
2026-05-26 02:31
🐘 comments.php
php
2 KB
2026-05-26 02:31
🐘 footer-variable.php
php
31 KB
2026-05-26 02:31
🐘 footer.php
php
2.1 KB
2026-05-26 02:31
🐘 front-page.php
php
1.6 KB
2026-05-26 02:31
🐘 functions.php
php
7.3 KB
2026-05-26 02:31
🐘 header-package.php
php
31 KB
2026-05-26 02:31
🐘 header.php
php
5.8 KB
2026-05-26 02:31
🐘 home.php
php
2.2 KB
2026-05-26 02:31
🐘 index-variable.php
php
31 KB
2026-05-26 02:31
🐘 index.php
php
1.7 KB
2026-05-26 02:31
🐘 page.php
php
896 B
2026-05-26 02:31
📝 readme.txt
txt
4.3 KB
2026-05-26 02:31
🖼️ screenshot.png
png
313.2 KB
2026-05-26 02:31
🐘 search.php
php
1.4 KB
2026-05-26 02:31
🐘 sidebar.php
php
368 B
2026-05-26 02:31
🐘 single.php
php
2.6 KB
2026-05-26 02:31
🎨 style.css
css
104.5 KB
2026-05-26 02:31