If you have used a custom query ( for example with query_posts()
) before standard WordPress flow, you might reset the internal query to avoid the strange result in the sidebar or other sides:
// reset all your custom query
wp_reset_query();
// now they waorks
get_sidebar();
get_footer();