No paged query var being set in WordPress custom pagination

Okay so the issue here was that my query var for page was actually ‘page’ not paged.

global $wp_query;
var_dump($wp_query->query_vars);

I was able to see all the query vars with the above code.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)