Sorts articles through link

0

Wordpress has a system where you sort how many files should appear on the home page, Categories etc.

Would it be possible to sort the number of files through the browser link?

Here we have a part of a link that shows articles in alphabetical order

                ?orderby=title&order=asc

Is there any code that you add in the code above would show how many articles I want?

Example:? orderby = title & order = asc 20 articles

    
asked by anonymous 23.07.2015 / 21:24

1 answer

0

I think you can do this, posts_per_page (n = number of records), and offset (n = how many records you will skip):

?orderby=title&order=asc&posts_per_page=n&offset=n

    
23.07.2015 / 21:44