• Hey,

    I had a template using query_post() to grab some post and was using get_query_val() to show the current page.

    The actual template file can be found here: https://gist.github.com/446333

    Since I’ve updated from 2.9 to 3.0, ‘paged’ is always returning 1.

    Has this function been depreciated or am I missing something?

    Thanks,

    Matt

Viewing 1 replies (of 1 total)
  • You should set get_query_var( ‘page’ ); if you want your query to work with pagination. Since WordPress 3.0.2, you do get_query_var( ‘page’ ) instead of get_query_var( ‘paged’ ). The pagination parameter ‘paged’ for query_posts() remains the same.

    Source

Viewing 1 replies (of 1 total)
  • The topic ‘WP 3.0 get_query_val( ‘paged’ ) not returning the current page anymore’ is closed to new replies.