Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress – pagination

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #26855
    lukewilde
    Member

    I have tried using a few guides for pagination but i can’t get any of them to even display the page numbers which i just don’t understand… So i have resorted to trying out a plug in, which atleast shows the page numbers, but when you click on page 2 it does nothing. Can anyone either help me get pagination working without this plug in or get this plug in to actually work?

    http://www.lsw-design.com/tf/Gridded/?page_id=8

    #76138
    cybershot
    Participant

    doesn’t wordpress have it’s own pagination? Have you tried the template tags? if the plugin you are using doesn’t work, try a different one. There are lots of them. I don’t know how to help you without you giving access to your site. unless you post code

    #75784
    lukewilde
    Member

    Blog

    $args = array(
    'paged' => $paged,
    'posts_per_page' => 5,
    'caller_get_posts' => 0,
    );
    query_posts('cat=-5');
    if (have_posts()) :
    while (have_posts()) :
    the_post(); ?>

    ">
    ">

    ">

    Woops...

    Sorry, no posts were found.


    Thats the code for the blog page, been trying to find answers for pagination since i started learning wordpress and haven’t found anything that works, or explains it in detail.

    #75567
    cybershot
    Participant

    in your code, you have query_posts(‘cat=-5’);

    I think it should be query_posts(‘cat=5’);

    #75568
    cybershot
    Participant

    p.s also check out the codex for more on this

    http://codex.wordpress.org/Function_Reference/query_posts

    #75569
    lukewilde
    Member

    If i change it to just 5 no posts show

    #75570
    cybershot
    Participant

    what version of wordpress are you using?

    #75571
    cybershot
    Participant

    also, how many posts do you have in the category?

    #75572
    lukewilde
    Member

    i have 7 posts in the category, and it is the latest version

    #75573
    cybershot
    Participant

    so you see five posts but no pagination?

    #75574
    cybershot
    Participant

    try moving your

    up before the

    wp_link_pages must be inside the loop. maybe it’s not executing where you have it?

    #75575
    lukewilde
    Member

    tried moving that as well as to different places, and still not working, if i put it before the endwhile; else then the page numbers show after every post and still doesnt work.

    #75510
    cybershot
    Participant

    at this point, I would try a different loop






    " rel="bookmark" title="Permanent Link to ">


    by



    Sorry, no posts matched your criteria.



    try that loop above. You can see the if(in_category(5)) part of the loop. Try it and see if it works. If it does, you can modify it to show the amount of posts that you want

    #75421
    lukewilde
    Member

    that loop showed the posts, but it just done what it was doing before, when i click page 2 it just changes the URL and not the posts.

    #75422
    cybershot
    Participant

    your problem is in here $args = array(
    'paged' => $paged,
    'posts_per_page' => 5,
    'caller_get_posts' => 0,

    if you check the url after clicking on the two, you can see the address is wrong. I don’t know how to fix it for you. Sorry

Viewing 15 posts - 1 through 15 (of 21 total)
  • The forum ‘CSS’ is closed to new topics and replies.