wordpress tips tricks

Wordpress: How to add pagination to a single post

The line will fail, because on singular post view, when the URL contains ‘/page/XX/’, the variable WordPress sets is ‘page’ and not ‘paged’. You may think to use ‘page’ instead of ‘paged’, but that will not work either, because once the ‘page’ variable is intended to be used for multi-page singular post (page separation using <!–nextpage–>) and once the post Read more…