adding conditional html to manual title
-
Hey there. I just started using this plugin to add a subtitle to specific posts. I’ve included it like this:
<h4><?php the_secondary_title(); ?></h4>
It words perfectly, except that, every post that doesn’t have a secondary title ends up with an empty h4 tag, eg
<h4></h4>
Is it possible to get rid of that superfluous html with some kind of conditional statement? thx!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘adding conditional html to manual title’ is closed to new replies.