using is_paged for hiding image on posts

I read that it doesn’t work for posts using <!–nextpage–> Not necessarily, but basically, if the current URL ends with /page/<number> as in https://example.com/page/2/ and https://example.com/category/foo/page/2/, then is_paged() would work, i.e. it returns true on page 2, 3, etc. But for singular posts with a page break, i.e. the <!–nextpage–> tag, where the URL normally … Read more

$paged always 0 on plugin’s custom page

I resolved this myself. The problem being: add_rewrite_rule(‘^foobar?’,’index.php?is_foobar_page=1′,’top’); Which prevents any other query_vars from being created. To resolve this, a slightly more complicated rewrite rule combo is set up: add_rewrite_rule(‘^foobar?$’,’index.php?is_foobar_page=1′,’top’); add_rewrite_rule(‘foobar/page/([0-9]+)?$’,’index.php?is_foobar_page=1&paged=$matches[1]’,’top’); This takes into consideration the creation of the plugin’s subpage ‘foobar’ and also allows for pagination within this page. Hope this helps someone.

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