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

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -