WordPress editing php get_template_part() and get_post_format() function -


i want load post content no title, date, comment, etc info. there way grab post only?

<?php if ( have_posts() ) : ?>    <?php while ( have_posts() ) : the_post(); ?>    <?php get_template_part( 'content', get_post_format() ); ?>    <?php endwhile; ?> <?php endif; ?> 

simply replace:

    <?php get_template_part( 'content', get_post_format() ); ?> 

with:

    <?php the_content(); ?> 

the former looking content-status.php or content-aside.php or likely, in case of plain old 'post', content.php in theme root.


Comments