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
Post a Comment