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

Android : Making Listview full screen -

jsf - How to order SelectItems in custom renderer extending MyFaces HtmlMenuRenderer -

sql server - SQL, get max id of column -