php - Display subheading with excerpt -


i want display subheading , excerpt of blog post

<?php { the_subheading(); the_excerpt();  } ?> 

when used above code displays subheading, follwed <p> , followed excerpt(). want remove <p>. possible? there other way?

i found answer.

<?php echo get_the_excerpt(); ?> instead of <?php the_excerpt(); ?> 

solved problem. hope useful someone!


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World