Function to list posts from current post’s category fails in WP 3.8
I never found out what stopped the function from working with WP 3.8, but I found that this variant of it does work – and I have no idea why: <?php function list_posts_from_current_category() { if(is_single()){ $tempArray = get_the_category($post->ID); $FirstCatName = $tempArray[0]->slug; $this_post = get_the_ID(); $PostsPerPage = 5; query_posts(array(‘category_name’ => $FirstCatName, ‘post__not_in’ => array($this_post), ‘posts_per_page’ => … Read more