Wordpress & IE specific markup error

I have this piece of code within a Wordpress loop that gathers all parent terms of the current post and displays children terms of each parent in an unordered list.

<?php $taxonomyName = "custom_tax";
$parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'slug', 'hide_empty' => false)); ?>  
  <?php foreach ($parent_terms as $pterm) :
    $terms = get_terms($taxonomyName, array('parent' => $pterm->term_id, 'orderby' => 'slug', 'hide_empty' => false));
      foreach ($terms as $term) :?>
          <li><a><?php echo $term->name ?></a></li>
      <?php endforeach;?>
  <?php endforeach;?>

This works in FF, Chrome, Safari & Opera, however in IE9, I get


I'm sure there is a simple fix, I checked and didn't find any similar issues here or in the WP forum so I'm hoping someone can shed some light on whether this is a known issue.

Thanks in advance.


The HTML code generated by you PHP script isn't affected by the browser you are using. Using output buffering you should save the generated html into a file, to see what html code you script is generating.

Clear the cache in IE and try it again. Does this help?

Need Your Help

upsize_ts column in legacy database - what does it mean?

sql sql-server database database-design

We have to work with legacy database and many tables have a column called upsize_ts of datatype timestamp not related to the data stored.

Building arbitrary ditributions from Maven Project containing several and optional modules

spring maven-2 distribution

first of all: my Maven knowledge is limited so please bear with me. ;-) I have a simple Maven Project currently consisting of three modules. The module containing the core of the application is cal...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.