Hello I must show solely titles of the posts please assist right here is my archive.php code
<?php international $theme; get_header(); ?>
<div id="important">
<?php $theme->hook('main_before'); ?>
<div id="content material">
<?php $theme->hook('content_before'); ?>
<h2 class="page-title"><?php
/* If it is a every day archive */
if (is_day()) {
printf( __( 'Every day Archives: <span>%s</span>', 'themater' ), get_the_date() );
/* If it is a month-to-month archive */
} elseif (is_month()) {
printf( __( 'Month-to-month Archives: <span>%s</span>', 'themater' ), get_the_date('F Y') );
/* If it is a yearly archive */
} elseif (is_year()) {
printf( __( 'Yearly Archives: <span>%s</span>', 'themater' ), get_the_date('Y') );
/* If it is a common archive */
} else {
_e( 'Weblog Archives', 'themater' );
}
?>
</h2>
<?php
if (have_posts()) : whereas (have_posts()) : the_post();
/**
* The default put up formatting from the put up.php template file will probably be used.
* If you wish to customise the put up formatting in your archive pages:
*
* - Create a brand new file: post-archive.php
* - Copy/Paste the content material of put up.php to post-archive.php
* - Edit and customise the post-archive.php file in your wants.
*
* Be taught extra in regards to the get_template_part() perform: http://codex.wordpress.org/Function_Reference/get_template_part
*/
get_template_part('put up', 'archive');
endwhile;
else :
get_template_part('put up', 'noresults');
endif;
get_template_part('navigation');
?>
<?php $theme->hook('content_after'); ?>
</div><!-- #content material -->
<?php get_sidebars(); ?>
<?php $theme->hook('main_after'); ?>
</div><!-- #important -->
<?php get_footer(); ?>
right here is put up.php file
<?php international $theme; ?>
<div <?php post_class('put up clearfix'); ?> id="post-<?php the_ID(); ?>">
<div class="postmeta-primary">
<span class="meta_date"><?php echo get_the_date(); ?></span>
<span class="meta_categories"><?php the_category(', '); ?></span>
<?php if(comments_open( get_the_ID() )) { ?>
<span class="meta_comments"><?php comments_popup_link( __( 'No feedback', 'themater' ), __( '1 Remark', 'themater' ), __( '% Feedback', 'themater' ) ); ?></span>
<?php } ?>
</div>
<h2 class="title">" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></h2>
<div class="entry clearfix">
<?php if(has_post_thumbnail()) { ?>">
<?php the_post_thumbnail(
array($theme->get_option('featured_image_width'), $theme->get_option('featured_image_height')),
array("class" => $theme->get_option('featured_image_position') . " featured_image") ); ?>
<?php } ?>
<?php the_content(''); ?>
</div>
<?php if($theme->show('read_more')) { ?>
<div class="readmore">
#more-<?php the_ID(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php $theme->possibility('read_more'); ?>
</div>
<?php } ?>
</div><!-- Publish ID <?php the_ID(); ?> -->