get_query_var(‘paged’) always returns empty

Do you have the “paged” parameter in the URL of the page(s) that you are trying to use get_query_var with? As far as I know get_query_var(“paged”) is explicitly returning the value of the URL param so you need to have a URL like this for it to work:

/?paged=7

Alternatively you could read the URL param using straight-up PHP:

$_GET['paged']

Leave a Comment