I can’t get the following to work:
<span id="featured-excerpt"><?php the_excerpt(); ?></span>
The CSS style will work for anything before or after the php for excerpt, but the excerpt itself refuses to be styled. The only way I seem to have any success is using this approach, where I try to place the php inside the span tag. But it creates a new single-space blank line after the php ouput….
<span id="featured-excerpt" <?php the_excerpt(); ?></span>
Any pointers would be appreciated.
- The topic ‘html style tag doesn't work on php code?’ is closed to new replies.