Forums

Index Paging (5 posts)

  1. TriLeafDesigns
    Member
    Posted 1 year ago #

    My website:
    http://trileafdesigns.com/calendar/

    The Index Pastebin
    http://pastebin.com/4CK0wrRZ

    I've been researching paging for awhile now. It just seems though no matter what I try it will either crash the page or limit the number of posts on the page.

    What I'm trying to do it limit the number of posts on the page but also have paging going on at the bottom. I'm able to get paging to work when you search something (ex: "environment") but when I try to use that - it puts the "paging" at the bottom but when you click on it none of the posts change. The query will change (ex: say page 2, page 3, etc.) but the posts stay the same.

    Was wondering if anyone here could help me.

    Thanks!

  2. vtxyzzy
    Member
    Posted 1 year ago #

    Seems to be working now, at least on the 'Random Madness' page. Did you get it fixed? If so, care to share the fix?

  3. TriLeafDesigns
    Member
    Posted 1 year ago #

    The paging now works but I can't limit the number of posts. It's just on default paging right now but I only want to show like 5 posts per page.

  4. govpatel
    Member
    Posted 1 year ago #

    Did you change it Settings Reading

  5. vtxyzzy
    Member
    Posted 1 year ago #

    I wonder if the code below from your pastebin post is really doing what you want:

    if ($myOptions['ticker_posts']) {
    $posts = $myOptions['ticker_posts'];
    } else {
    $posts = 0;
    }

    What is the value of zero for $posts supposed to do? Default to the number in Settings->Reading? If so, maybe the 'ticker_posts' option is not set or spelled differently and you are always getting zero.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags