I know there have been many question like this and I've read them, but I still cant get it working... I have this query:
query_posts(array('cat'=>3,'posts_per_page'=>5));
And I simply display the content below in while (have_posts()) : the_post();
loop
How can I add pagination to this?
I'm trying with adding posts_nav_link();
( I don't know is it the right function to call what I want) and links displayed take me to http://mysite.com/page/2. Since its my index page its ok to not add category name in link (its news page) but after clicking on the link, when I'm on the page/2/ news simply doesn't change. I still see the first page of my news without change... I think I need to add attribute of 'paged' to my query, but how and where? I've tried 'paged'=>'paged'
in array but still nothing