Reverse ordered pagination on home page

Use on the blog reverse pagination. The question arose. How to make a home page is not the first? Need to break the link Home = First page and make a connection Home = Last page.

Home should be the last. For example on a blog with 20 pages: Opening the site at httр://www.example.com I get to the home page. And this the same page at the address httр://www.example.com/page/1/

I want to do the opposite: httр://www.example.com opens page 20 (httр://www.example.com = httр://www.example.com/page/20/ ).

For example like this http://izismile.com. Home is the last, not the first.

Topic frontpage pagination Wordpress

Category Web


The default order of posts is date descending.

To reverse it for home page you could hook into pre_get_posts and for is_home() query set order parameter to ASC.

Note that that pages would still go from 1 ascending, they will just have posts on them in opposite order. I don't think actually reversing order of pages is easily doable.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.