how to wrap excerpt in tag and title in H3?
-
I want to be able to wrap the excerpt in a p tag, and the title in H3 so I can separate them… I have a custom template, just unsure of how to make them work,
//Show the title and link to the post: $lcp_display_output .= $this->get_post_title($post, 'h3', 'lcp_post'); //Show comments: $lcp_display_output .= $this->get_comments($post); //Show date: $lcp_display_output .= ' ' . $this->get_date($post); //Show date modified: $lcp_display_output .= ' ' . $this->get_modified_date($post); //Show author $lcp_display_output .= $this->get_author($post); //Custom fields: $lcp_display_output .= $this->get_custom_fields($post); //Post Thumbnail $lcp_display_output .= $this->get_thumbnail($post); /** * Post content - Example of how to use tag and class parameters: * This will produce:<p class="lcp_content">The content</p> */ $lcp_display_output .= $this->get_content($post, 'p', 'lcp_content');
- The topic ‘how to wrap excerpt in tag and title in H3?’ is closed to new replies.