Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10415

    Hello,

    Quick question: How can I change the articles per page for archive.php? Or turn the pagination off so that all posts are shown

    thx

    #67984

    Hi mehrblick,

    Under wordpress Settings>Reading>Blog pages show at most. That is the number that wordpress should be using to determine pages.

    #67985

    But what if I want to have a different pagination in the archive.php than in the blog overview?

    If I want 50 articles per page in the archive.php, it doesn’t work if I write $pagination(50)

    #67986

    Hey!

    Unfortunately wordpress doesn’t offer this feature right out of the box. you would need to modify the query in the archive.php file before running the loop.

    this would probably work if you want to display all items for example:

    Between line 2 and 3 of archive.php add the following code:


    global $query_string;
    query_posts($query_string.'&posts_per_page=9999');

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Customize Pagination in Archive.php’ is closed to new replies.