I have a static front page that checks if the user is logged in, and if he/she is a number of x posts from a specific category is displayed. For that I was using this code:
query_posts('cat=2&showposts=5'.'&orderby=date&order=desc');
while (have_posts()) : the_post();
the_content();
endwhile;
Now I found out that's not right to use query_post
and that I should use pre_get_posts
instead. I've tried to do this but somehow my page breaks down saying that my server is configured incorrectly.