WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Previous/Next Link Not Working

[Resolved] Previous/Next Link Not Working

  • Handoko
    Participant

    @handoko-zhang

    On the Views (left side) I put:
    – Title
    – Content
    – Previous Link
    – Next Link

    On the Controls (right side) I put:
    – Number: 5
    – Order: Ascendingly

    I use Easy on my Sidewide Top Widget Area, it shows the data correctly, but the Previous/Next Link do not working. I even installed WP-Pagenavi and put it on the Views, still have not luck to make it works.

    Actually, I was going to use 2046’s Loop Widget Plugin, it works. But because I saw the note that suggesting users to use Easy plugin, so I try this Easy plugin.

    Any fix for it, or should I use 2046′ Loop Widget Plugin? I want to show some contents with navigation (previous/next) controls.

    http://wordpress.org/extend/plugins/easy/

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author 2046
    Participant

    @o-o

    I’ll check that out.. stay with Easy // 2046’s loop widget have no future.

    cheers 2046

    Plugin Author 2046
    Participant

    @o-o

    hello,

    you were right. I have fixed it in new version 0.8.2 which is flying to the repo right now.

    I have added a new Control brick “Exclude actual post/page” which might be handy if you do not want to include in the Easy loop actually displayed post/page.

    Handoko
    Participant

    @handoko-zhang

    Thanks for the fix.

    Downloaded and tested 0.8.2, unfortunately still not working. Exclude actual post/page seems working correctly but the Previous/Next Link do not work.

    Plugin Author 2046
    Participant

    @o-o

    I don’t know exactly what you want to achieve.
    You have to keep in mind that the next/previous link corresponds to the concrete widget loop.

    So based on your bricks you have posted here.
    It will give you 5 last posts (not recent, if you want recent you have to sort them descendingly.. it is sorted by published time, by default.. and you have not set otherwise)
    It will show you link to next post only. It wont show you previous link because there is no previous post naturally, you are showing 5 last posts.
    It will stay as that no matter where you are, because the logic is set up only for that widget and the widget knows nothing what is happening around in this case.
    (If you want the widget to be affected by paging you have to add the “post type” brick and check the “affected by page number” radio button.)
    Let me know if that enlights the problem, if not, post a link in here where I can see want you try to do, and how it behaves.

    Handoko
    Participant

    @handoko-zhang

    This is the link:
    http://test1.test.inbika.com/

    I’m using Weaver II theme, I put the widget on Sidewide Top Widget area. To make it simple, I removed the order control. So it only contains the very basic things:

    * Views:
    – Title
    – Previous Link
    – Next Link

    * Control:
    – Number: 3

    If you click the Previous/Next links, the title that shows always are:
    – Test Post #6
    – Test Post #10
    – Test Post #9

    Plugin Author 2046
    Participant

    @o-o

    hello

    I think it works as expected, though not as you expected.

    The titles will always stay untouched as they are because the logic said so. You always get 3 last posts no matter what is happening and also no matter that you clicked on the next/previous link. And that is because the loop doesn’t care what is happening around and even where the inner next/prev links points to.
    If you want the widget loop to be affected by the surrounding content, better told let it be influenced by the paging you have to add into CONTROL a “post type” brick and check the “affected by page number” radio button. (I have posted it above already).
    In that case you’ll see 3 posts influenced by paging.. it is bit tricky, because you mismatch two logic in one result.. the WP default (global settings) with the loop widget.. so if you set in your global reading settings, you want to see 5 posts and in the widget 3 posts, but let the widget be affected by paging.. you might encounter “weird” results.

    remember the loops are separate .. they are as different as 2 humans in one house.

    Handoko
    Participant

    @handoko-zhang

    Ok I think understand. But something weird if I compare Easy with 2046’s Loop Widget:

    – Using 2046′ Loop, if you’re on home page, it works similar with Easy plugin:
    http://test1.test.inbika.com/

    – Using 2046′ Loop, if you’re on the Achieve page it works as what I want:
    http://test1.test.inbika.com/2013/02/

    – Using 2046′ Loop, if you’re on the Categories page it works as what I want:
    http://test1.test.inbika.com/category/uncategorized/

    – If using Easy, no matter on what page, it always works not as what I want.

    Try these link above, I have changed it to use 2046′ Loop widget.

    Plugin Author 2046
    Participant

    @o-o

    have you tried the ..
    “CONTROL a “post type” brick and check the “affected by page number” radio button.”
    ?

    .. hmmm
    I might get what you want.. gime some time

    Plugin Author 2046
    Participant

    @o-o

    o.8.3 has NEW – VIEW – “Prev/Next link” – mimics the native posts_nav_link() function

    hope I satisfied your needs 🙂

    Handoko
    Participant

    @handoko-zhang

    Thank you for your help sir. But unfortunately to tell you even the 0.8.3 is still not working.

    You may visit those links, the part on top (Test Post #6, #10, #9) is using Easy 0.83. While the part on bottom, I manage to get what I want using WordPress default loop + some CSS tricks.

    The “Prev/Next Link” does work, but only on WordPress default objects, not on the “things” inside Easy view.

    Consider this issue closed.

    Plugin Author 2046
    Participant

    @o-o

    Okej, I’ll fix that soon as well.

    Plugin Author 2046
    Participant

    @o-o

    btw. you are right.
    The prev-next link works only when there is the archive loop nearby. And that’s because I use the native function that are done for that.

    I’ll rewrite the next-prev link so it will be independent of the actual WP_query.

    Handoko
    Participant

    @handoko-zhang

    I’m glad to hear this news.

    Although I’ve already solved my need to have this feature using CSS + WP native loop, I do use Easy for my other projects. Easy is a very useful plugin for those who want to have customized appearance of website. I’ve been looking, searching and testing lots of WP plugins, none can’t offer this power like Easy.

    Plugin Author 2046
    Participant

    @o-o

    I have looked into this problem, and I must say I have not found a clean solution. Yes I can hack it in a way so it works also on “page” views but that will surely be a hack.

    As for now, the navigation brick works well on home or archive (category) listing. The rest is not good.

    I’ll keep it in mind and fix it once I find any good solution.
    (since then I suggest you to use the WP-pagenavi plugin.. Easy has a brick for it, it works nicely as far as I know)

    Handoko
    Participant

    @handoko-zhang

    It’s okay sir, no need to hurry. I have bookmarked your plugin, and will come back every once a while.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Resolved] Previous/Next Link Not Working’ is closed to new replies.