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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -