WordPress.org

Ready to get started?Download WordPress

Forums

Category Pagination in archive page (12 posts)

  1. kai motta
    Member
    Posted 1 year ago #

    Hi all

    I have built a site using wordpress and have two pages displaying two different categories, one on each.

    When I set in the reading setting 'Blog pages show at most' to 2, only on one of the categories archive pages does the pagination appear.

    I have looked through the category page and the archive page but can't work out why the pagination only appears on one of the archives.

    Here are the pages:

    Latest News

    http://testbed.digicooldesigns.com/pebbleshores-wordpress/category/news/

    Blogs

    http://testbed.digicooldesigns.com/pebbleshores-wordpress/category/blog/

    Any help much appreciated

    Thanks

    Kai

  2. IMICreation
    Member
    Posted 1 year ago #

    is both pages are archive.php

  3. kai motta
    Member
    Posted 1 year ago #

    Is that wrong then?

  4. IMICreation
    Member
    Posted 1 year ago #

    can i see the code through pastebin

  5. kai motta
    Member
    Posted 1 year ago #

    Just adding to pastebin now

  6. kai motta
    Member
    Posted 1 year ago #

    How do I set it on Pastebin for you to see?

  7. IMICreation
    Member
    Posted 1 year ago #

    just copy your code to pastebin and than copy the address from address bar and paste that address here

  8. kai motta
    Member
    Posted 1 year ago #

    Okay, I had made them private and thought you would login etc

    http://pastebin.com/BRBDtBu5
    http://pastebin.com/MjVmGRzy
    http://pastebin.com/WVc58tA6
    http://pastebin.com/gDQ2z7qW

    Thanks, really appreciate it

  9. IMICreation
    Member
    Posted 1 year ago #

    what is the id of your blog category

  10. kai motta
    Member
    Posted 1 year ago #

    15

  11. IMICreation
    Member
    Posted 1 year ago #

    that's why you are not getting pagination because the pastebin http://pastebin.com/WVc58tA6 there is limit set to 5
    $args = array( 'numberposts' => 5, 'order'=> 'DES', 'orderby' => 'date', 'category'=> '15' );
    you can change this with
    $args = array( 'order'=> 'DES', 'orderby' => 'date', 'category'=> '15' );
    now your code will display only 2 posts with pagination

  12. kai motta
    Member
    Posted 1 year ago #

    Just tried it, still not working unfortunately.

    The above just tells it how many posts to put on the blog and news template pages, it doesn't follow through to the archive page though.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.