Hello,
I have a custom homepage, and there's a section on it which display posts from 'news' category, and i want to create a paging on the section.
Here's my code in homepage.php
http://pastebin.com/raw.php?i=pc3v2kpi
and this is my code in functions.php (the paging function)
http://pastebin.com/raw.php?i=TrLveY8a
the problem is, everytime i clicked on page 2 for example, it doesn't change the queried item, and also my get_query_var( 'paged' ) value always produce 0. i was thinking about the offset and limit, but not sure how to do that in the wp_query.
anyone can help?
thanks in advance