I have created category.php (by making a copy of archive.php and renaming it to category.php).
Now my problem is how to change it so that it only shows post featured image (thumbnail) and title. Clicking thumbnail or title will link to the post.
I know how to style it using css, but I need help with the php. Can anyone help me?
It is this code I need help with.
I would like to change it so that it shows post featured image thumbnail and post title, linked to the post.
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>