Thread Starter
Jake
(@harpomarx-1)
Hi,
I added the code but it doesn’t have any effect.
Would it be because, as the Codex says:
“Similarly, pre_get_posts will not work if used in template files (e.g., archive.php), since they are called after the query has been completed.” (from https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts )
Or am I running into the same problem as here, that does not seem to be solved: https://theeventscalendar.com/support/forums/topic/order-of-events-showing-events-by-post-date/
-
This reply was modified 8 years, 9 months ago by Jake.
IE8 doesn’t really support custom tags that are in the theme.
To solve this, try adding the following code in header.php:
<!--[if lt IE 9]>
<script>
// custom elements
els = ['article', 'aside', 'footer', 'nav', 'header'];
for(i = 0; i < els.length; i++) {
document.createElement(els[i]);
}
</script>
<![endif]-->