$_GET vs get_query_var()
Is there is any advantage of using the
I have tried like this
and the results are totally different
echo $_GET['posts_per_page'] // output is 2 echo get_query_var('posts_per_page') //output is 10
I have not added ‘posts_per_page’ to query var list using action so where does this 10 is coming up from?