Title: HTML Validator problems
Last modified: August 31, 2016

---

# HTML Validator problems

 *  [Cristobal](https://wordpress.org/support/users/cristobal-paez/)
 * (@cristobal-paez)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/html-validator-problems/)
 * Hello! The plugin is awesome but I hace a problem maybe you can help me
    Well…
   I’m having some troubles doing the HTML Validation:
 * _Error: Element h4 not allowed as child of element code in this context. (Suppressing
   further errors from this subtree.)_
 * here is the [link](https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.verbotenmagazine.es%2F)
 * There’s something we can do?
 * thanks
 * [https://wordpress.org/plugins/subtitle-360/](https://wordpress.org/plugins/subtitle-360/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [HasanulBanna](https://wordpress.org/support/users/hasanulbanna/)
 * (@hasanulbanna)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/html-validator-problems/#post-7008231)
 * Hi Where you using this code?
    You may put the template tag inside a code wrapper?
 *  Thread Starter [Cristobal](https://wordpress.org/support/users/cristobal-paez/)
 * (@cristobal-paez)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/html-validator-problems/#post-7008232)
 * Hello, this is the FEATURED CONTENT PHP… Do I using it right?
 *     ```
       <?php
       /**
        * @package Expound
        */
       $featured_posts = expound_get_featured_posts();
       ?>
   
       <?php if ( $featured_posts->have_posts() ) : $featured_posts->the_post(); ?>
       <div class="featured-content">
   
       	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
   
       		<?php if ( has_post_thumbnail() ) : ?>
       		<div class="entry-thumbnail">
       			<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'expound-featured' ); ?></a>
       		</div>
       		<?php endif; ?>
   
       		<header class="entry-header">
   
       		<code><?php if (function_exists('the_subtitle')){ the_subtitle(); }?></code><h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'expound' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
       		</header><!-- .entry-header -->
   
       		<div class="entry-summary">
       			<?php the_excerpt(); ?>
       			<p><a class="button-primary" href="<?php the_permalink(); ?>"><?php _e( 'Continue reading &rarr;', 'expound' ); ?></a></p>
       		</div><!-- .entry-summary -->
   
       		<div class="clear"></div>
   
       	</article>
   
       </div><!-- .featured-content -->
   
       <?php if ( $featured_posts->have_posts() ) : // more than one? ?>
       <div class="featured-content-secondary">
       	<?php while ( $featured_posts->have_posts() ) : $featured_posts->the_post(); ?>
   
       		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
   
       			<?php if ( has_post_thumbnail() ) : ?>
       			<div class="entry-thumbnail">
       				<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
   
       				<?php if ( get_the_category() ) : ?>
       				<span class="entry-thumbnail-category"><?php the_category( ' / ' ); ?></span>
       				<?php endif; // get_the_category() ?>
       			</div>
       			<?php endif; ?>
   
       			<header class="entry-header">
       					<span class="sub"><?php if (function_exists('the_subtitle')){ the_subtitle(); }?></span>
       				<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'expound' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
       			</header><!-- .entry-header -->
   
       			<div class="entry-summary">
       				<?php the_excerpt(); ?>
       			</div><!-- .entry-summary -->
       		</article>
   
       		<?php if ( $featured_posts->current_post % 4 == 0 ) : ?>
       			<div class="clear"></div>
       		<?php endif; // % 4 ?>
   
       	<?php endwhile; ?>
       </div><!-- .featured-content-secondary -->
       <?php endif; // have_posts() inner ?>
       <?php endif; // have_posts() ?>
       ```
   
 *  Plugin Author [HasanulBanna](https://wordpress.org/support/users/hasanulbanna/)
 * (@hasanulbanna)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/html-validator-problems/#post-7008233)
 * Why you use code tag?
 *  Thread Starter [Cristobal](https://wordpress.org/support/users/cristobal-paez/)
 * (@cristobal-paez)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/html-validator-problems/#post-7008234)
 * Well… honestly, not sure.
    How do I supose to do it?
 * 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HTML Validator problems’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/subtitle-360_96334b.svg)
 * [Subtitle 360](https://wordpress.org/plugins/subtitle-360/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subtitle-360/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subtitle-360/)
 * [Active Topics](https://wordpress.org/support/plugin/subtitle-360/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subtitle-360/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subtitle-360/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [validator](https://wordpress.org/support/topic-tag/validator/)

 * 4 replies
 * 2 participants
 * Last reply from: [Cristobal](https://wordpress.org/support/users/cristobal-paez/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/html-validator-problems/#post-7008234)
 * Status: not resolved