Content doesn't appear on homepage

  • Unknown's avatar

    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="http://blabla.com/wp-content/themes/twentytwelve/images/ileri.png">') ?></div>
    
    <div class="buton_geri"><?php previous_posts_link('<img src="http://blabla.com/wp-content/themes/twentytwelve/images/geri.png">') ?></div>
    
    		</section><!--#content end-->
    
    <?php get_footer(); ?>
  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • Unknown's avatar

    Hello i’m designing a theme.

    Not on a free hosted WordPress.com you aren’t because that not possible. You are posting to the wrong support forum. Note that we do not provide support here at WordPress.COM for any installs of WordPress.ORG software. We provide support only for free hosted WordPress.COM blogs being hosted right here on this multiuser blogging platform.

    WordPress.com and WordPress.org are completely separate, have different log-ins and run different versions of themes with same names. If you don’t have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.

  • The topic ‘Content doesn't appear on homepage’ is closed to new replies.