WordPress.org

Ready to get started?Download WordPress

Forums

Easy
[resolved] Previous/Next Link Not Working (21 posts)

  1. Handoko
    Member
    Posted 1 year ago #

    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/

  2. 2046
    Member
    Plugin Author

    Posted 1 year ago #

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

    cheers 2046

  3. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  4. Handoko
    Member
    Posted 1 year ago #

    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.

  5. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. Handoko
    Member
    Posted 1 year ago #

    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

  7. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. Handoko
    Member
    Posted 1 year ago #

    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.

  9. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    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

  10. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    o.8.3 has NEW - VIEW - "Prev/Next link" - mimics the native posts_nav_link() function

    hope I satisfied your needs :)

  11. Handoko
    Member
    Posted 1 year ago #

    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.

  12. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    Okej, I'll fix that soon as well.

  13. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  14. Handoko
    Member
    Posted 1 year ago #

    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.

  15. 2046
    Member
    Plugin Author

    Posted 1 year ago #

    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)

  16. Handoko
    Member
    Posted 1 year ago #

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

  17. 2046
    Member
    Plugin Author

    Posted 11 months ago #

    can you please check if the problem is still present.. I did some changes in this scope which might solve the problem.

    thanks

  18. Handoko
    Member
    Posted 11 months ago #

    I works, but with some issues.

    My settings are:

    * Views:
    - Title
    - Navigation (Prev/Next Links)

    * Controls:
    - Post type: post, affected by post number
    - Category: Cat, ID = 2
    - Number: 3

    Test Results:

    - It works only on homepage. But with some issues, see below.

    - The site has 10 posts (5 in category1 and 5 in category2). The next button fail to detect max. pages for category2 correctly. It should have only 2 pages (5/3), but it detect 4 pages (10/3). I set default the WordPress Blog pages show at most = 3.

    - If I change the Prev/Next Links to WP-PageNavi, it can work on any posts or pages. But also with some issues.

    - By using WP-PageNavi, the paging will affect WordPress main loop. WP-PageNavi successfully detect there has 2 pages, but the problem is the mainloop has 4 pages. So clicking the widget paging buttons should not affect WordPress main loop.

    - Related with issue mentioned above, if the widget doesn't show on home page, everything seems correctly, because there is no main loop to be affected.

  19. 2046
    Member
    Plugin Author

    Posted 11 months ago #

    heh :) so much things :)

    I think the problem is that the are many loop that has different number of pages.

    The thing is that the page number (no matter for what loop) is a general variable "hidden" in the global Query. There is always global query, no matter what. And so if you have many loops on one page which are set to be affected by the pagination they read the page number from global query, all of them at once. That is how they know on what page they are, they get the number from global query. and so if you have for example two loops one with posts filling 3 pages and second loop with posts filling 4 pages.. and you call them on one page.. say homepage, you will list through both at once, but! But when you go on page 4, the loop with 3 will be affected too, and so will show empty result.. and so on and so forth.
    (note: Wp-pagenavi shows page numbers related to it actual query(loop) not more, because it knows how many pages the actual query has.. but you still can go on with page numbers and the whole WP will reacts to it.. you can safely go to page domain.com/page/150000 and Wp will try to show what it has for that page)

    Basically the case is that we have only one page number we are relating on... The setup you would like to build is unrealistic. .. as far I can imagine.

    In such or similar situation I would use paging only for the main loop , set all the the other loop not affected by pagination and add link to the archive for them.
    I know this is not what you are looking for, but it will not produce unwanted results. The world has some limitations :) .. sure I might be wrong :)

  20. Handoko
    Member
    Posted 11 months ago #

    Almost perfect but has some tiny flaws. This plugin is great, although it doesn't work as what I want. I'm marking this topic as resolved. Hope someday you can find the cure for the flaws.

  21. Handoko
    Member
    Posted 10 months ago #

    Any luck with the Previous/Next Link?

    I just found a loop plugin with an add-on for its pagination feature. Hope it can be useful for you to study how it work.

    Mini Loops
    Plugin:
    http://wordpress.org/plugins/mini-loops/

    On the plugin FAQ, it said this add-on is for ajax paging:
    https://gist.github.com/trepmal/5073756

    I installed them and tried briefly, it seems working correctly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.