| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/lisky/wp-content/themes/newspress-lite/ |
Upload File : |
<?php
/* Single Page to display Single Page or Post
Copyright: 2014-2022, D5 Creation, www.d5creation.com
Based on the Simplest D5 Framework for WordPress
Since NewsPress 1.0
*/
get_header(); ?>
<div id="content">
<?php if ( have_posts() ): while ( have_posts() ) : the_post(); ?>
<h1 class="page-title"><?php the_title(); ?></h1>
<?php newspress_author_meta(); ?>
<div class="content-ver-sep"> </div>
<div class="entrytext"><?php the_post_thumbnail('single-page' , array('class' => 'attachment-single-page')); ?>
<?php newspress_content(); ?>
</div>
<div class="clear"> </div>
<?php newspress_post_meta(); ?><br />
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __('Pages:','newspress-lite') . '</span>', 'after' => '</div>' ) ); ?><br />
<div class="floatleft"><b><?php previous_post_link('« %link ('. __('Previous News','newspress-lite') . ')'); ?></b></div>
<div class="floatright"><b><?php next_post_link('('. __('Next News','newspress-lite') . ') %link »'); ?></b></div><br />
<div class="clear"> </div>
<?php if ( is_attachment() ): ?>
<div class="floatleft"><?php previous_image_link( false, '« ' . __('Previous Image','newspress-lite') ); ?></div>
<div class="floatright"><?php next_image_link( false, __('Next Image','newspress-lite') . ' »' ); ?></div>
<?php endif; endwhile; endif; ?><br />
<!-- End the Loop. -->
<div class="clear"></div><br />
<!-- Related News -->
<?php
$category = get_the_category();
$args = array(
'cat' => $category[0]->cat_ID,
'orderby' => 'post_date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
'posts_per_page' => 10,
'suppress_filters' => true );
$my_query = new WP_Query($args); if (have_posts()) : $counter =0; ?>
<div class="fpage-catspecial">
<h2 class="fcname"><?php echo __('Related News','newspress-lite'); ?></h2>
<?php while ( $my_query->have_posts()) : $my_query->the_post(); $counter++; ?>
<?php if ($counter == 1 || $counter == 2 ) : ?>
<div class="special-cat-sub">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_post_thumbnail('cat-page', array('class' => 'fi-full-width-cat')); ?>
<h3 class="fcpt"><?php the_title(); ?></h3>
<?php $newspress_excerptlength= '15'; the_excerpt(); ?></a></div><?php else: ?>
<h4 class="fcpt"><ul><li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li></ul></h4></a>
<?php endif; endwhile; wp_reset_postdata(); ?>
</div> <!--end of fpage-catspecial-->
<?php endif; ?>
<div class="content-ver-sep"> </div>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>