I want certain widgets to not appear on page 1 of a paginated post, but appear on all other pages (page 2, 3 .. so on), and some other widgets to appear on only appear on page 1 and not the rest of the paginated pages.
I installed a plugin that lets you execute php in widgets, and then tried the following conditions in my widget:
This didn't work:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if(1 != $paged)
This didn't work either:
This didn't too:
I then installed the plugin "widget logic" and tried the condition
is_paged() but that didn't work either.
That function is not global certainly.
Can anyone suggest how should I go about it?