Forums

WP 3.0 get_query_val( 'paged' ) not returning the current page anymore (2 posts)

  1. envex
    Member
    Posted 1 year ago #

    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: http://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

  2. Omegakenshin
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic