• Hello i’m designing a theme. Because i don’t want thumbnail on homepage, i deleted some codes from index.php. And after that the articles doesn’t appear too. Only the titles can be seen on homepage. Here is my index.php

    <?php get_header(); ?><?php global  $optionsdb; ?>
    
    <section id="content">
    	<?php
    		wp_reset_query();
    		if ( have_posts() ) :
    		while ( have_posts() ) : the_post(); ?>
    
    			<article class="item">
    				<div class="date"><?php echo get_the_date('d.M.Y'); ?></div>
    				<div class="title"><a href="<?php the_permalink() ?>" title="<?php baslik(); ?>"><?php baslik(); ?></a></div>
    				<?php if((isset($optionsdb['cwp_b_featureimg']) && $optionsdb['cwp_b_featureimg'] == 'Show') || !isset($optionsdb['cwp_b_featureimg'])) { ?>
    					<div class="image">
    						<?php
    							$feat_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
    							if(isset($feat_image[0])):
    								echo '<a href='.$posturl.' title="'.$titlupost.'"><img src='.$feat_image[0].' alt="'.$titlupost.'"></a>';
    							endif;
    						?>
    					</div>
    				<?php } ?>	
    
    				<div class="excerpt"><?php the_content('.. devam?n? oku ?'); ?></div>
    
    			</article><!--index article end-->	
    
    	<?php endwhile;
    	/* Use PageNavi*/ else : ?>
    	<?php	_e('404 - Bulunamad?','cwp') ?>;
    	<?php endif; ?>
    
    <div class="buton_ileri"><?php next_posts_link('<img src="https://blabla.com/wp-content/themes/twentytwelve/images/ileri.png">') ?></div>
    
    <div class="buton_geri"><?php previous_posts_link('<img src="https://blabla.com/wp-content/themes/twentytwelve/images/geri.png">') ?></div>
    
    		</section><!--#content end-->
    
    <?php get_footer(); ?>

    Where did i make mistake? Thanks a lot.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Content doesn't appear on homepage’ is closed to new replies.