ana index şablonun orta kısmında blog yazıları ile ilgili bir bölüm var. yalnız blog yazılarının tam metni burada yer alıyor. ben özet görünmesini ve devamını oku diyerek bloga girmesini istiyorum. wordpress ayarlarından özet görünüm olarak ayarlaması yapılı fakat çözüm olmadı. kodlar aşağıdaki gibi;
ana index
<?php
get_header();
get_template_part('index', 'bannerstrip');
?>
<!-- Blog & Sidebar Section -->
<section>
<div class="container">
<div class="row">
<!--Blog Posts-->
<div class="col-md-8 col-xs-12">
<div class="site-content">
<?php
if ( have_posts() ) :
// Start the Loop.
while ( have_posts() ) : the_post();
get_template_part( 'content','' );
endwhile;
?>
<!-- Pagination -->
<div class="paginations">
<?php
// Previous/next page navigation.
the_posts_pagination( array(
'prev_text' => __('Önceki','busiprof'),
'next_text' => __('Sonraki','busiprof'),
'screen_reader_text' => ' ',
) ); ?>
</div>
<?php endif; ?>
<!-- /Pagination -->
</div>
<!--/End of Blog Posts-->
</div>
<!--Sidebar-->
<?php get_sidebar();?>
<!--/End of Sidebar-->
</div>
</div>
</section>
<!-- End of Blog & Sidebar Section -->
<div class="clearfix"></div>
<?php get_footer(); ?>index blog<?php $current_options = wp_parse_args( get_option( 'busiprof_theme_options', array() ), theme_setup_data() );
if( $current_options['home_recentblog_section_enabled']=='on' ) { ?>
<!-- Testimonial & Blog Section -->
<section id="section" class="home-post-latest">
<div class="container">
<!-- Section Title -->
<div class="row">
<div class="col-md-12">
<div class="section-title">
<?php
if( $current_options['recent_blog_title'] != '' ) { ?>
<h1 class="section-heading"><?php echo $current_options['recent_blog_title'];?></h1>
<?php } if( $current_options['recent_blog_description'] !='') { ?>
<p><?php echo $current_options['recent_blog_description'];?></p>
<?php } ?>
</div>
</div>
</div>
<!-- /Section Title -->
<!-- Blog Post -->
<div class="row">
<?php $args = array( 'post_type' => 'post','posts_per_page' => 4,'post__not_in'=>get_option("sticky_posts")) ;
query_posts( $args );
if(query_posts( $args ))
{
while(have_posts()):the_post();
{ ?>
<div class="col-md-6">
<div class="post">
<div class="media">
<figure class="post-thumbnail"><?php $defalt_arg =array('class' => "");?>
<?php if(has_post_thumbnail()){?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('',$defalt_arg);?></a>
<?php } ?>
</figure>
<div class="media-body">
<?php if( $current_options['home_recentblog_meta_enable']=='on' ) { ?>
<div class="entry-meta">
<span class="entry-date"><a href="<?php the_permalink(); ?>"><time datetime=""><?php the_time('M j,Y');?></time></a></span>
<span class="comments-link"><a href="<?php the_permalink(); ?>"><?php comments_popup_link( __( 'Leave a Reply', 'busiprof' ) ); ?></a></span>
<?php if( get_the_tags() ) { ?>
<span class="tag-links"><a href="<?php the_permalink(); ?>"><?php the_tags('', ', ', ''); ?></a></span>
<?php } ?>
</div>
<?php } ?>
<div class="entry-header">
<h4 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h4>
</div>
<div class="entry-content">
<p><?php the_content(__('Read More','busiprof')); ?></p>
</div>
</div>
</div>
</div>
</div>
<?php } endwhile; } ?>
</div>
<!-- /Blog Post -->
</div>
</section>
<!-- End of Testimonial & Blog Section -->
<div class="clearfix"></div>
<?php } ?>