PHP in HTML
-
Hello,
I am making simple statements in HTML to reference WP operators. My HTML tags (
<p>
,<em>
) do not display wrapping around the WP operator. Example of my code below. Any help is appreciated:)else { echo the_post_thumbnail(); echo '<h4><a href="'. get_permalink() .'" title="'. the_title_attribute( array( 'echo' => 0 ) ) .'">'. get_the_title() .'</a></h4>'; echo '<p><em>' .the_category( ' ' ). '</em></p>'; echo '<p>' .excerpt('20'). '</p>'; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP in HTML’ is closed to new replies.