On the pages where I created The Loop with a
$posts = get_posts('numberposts=xx'); foreach ($posts as $post) : start_wp();I have started getting category names appearing multiple times with the posts with which they are associated. Thus, where a post might be in the “World News” category, the post has appended to it “World News, World News”. Prior to using the get_posts call I was not getting this error. Also, the error is not universal, but I cannot see a pattern for the ones affected and the ones not. Now some entries have 3 itterations of the category name while some have only the one.
(I wanted to use the get_post tag so I could make two loops, one – above – to put a limited number of posts formatted in a particular way and the second – below – with just the titles of the article and their categories).
The remainder of the pages that do not use get_posts are continuing to function normally.
- You must be logged in to reply to this topic.