Single view runs loop twice.
-
When I add a new template for handling the single view, the content loops twice. The post only has one result (because its single), but yet the template loops within itself. I’ve “fixed” this with CSS, but it still is bothering me. When I turn DEBUG on within wp-config.php I get these errors:
Notice: Undefined offset: 1 in [...]/wordpress/wp-includes/query.php on line 2800 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/query.php on line 3592 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/query.php on line 3594 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/query.php on line 3596 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/query.php on line 3597 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/query.php on line 3604 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/query.php on line 3615 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/post-template.php on line 30 Notice: Trying to get property of non-object in [...]/wordpress/wp-includes/post-template.php on line 30It could be interfering with other plugins, I suppose.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Single view runs loop twice.’ is closed to new replies.