Esc attribute
-
Need php advice on using the escape attribute in the following link code for a news template: https://www.howlingwolfmedia.com/site3/news.
The titles are not following h3 styling<?php $posts=get_posts('category=14&post_type=post&showposts=20'); if ($posts) { foreach($posts as $post) { setup_postdata($post); ?> <h3 ><a href="<?php the_permalink() ?>" ><?php the_title(); ?></a> </h3> <p style="margin-top:0; margin-bottom:12px"> <?php if ($post->post_excerpt) { echo $post->post_excerpt; } } } ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Esc attribute’ is closed to new replies.