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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -