• Resolved hikomiko2

    (@hikomiko2)


    Hi Maeve,

    thanks for the great plugin that you wrote! i ran into a problem and you might help me out.

    On my website i have different products within different categories. When viewing a single product off a certain category i have the option to go to the previous or the next product. so far, so good.

    And here comes my problem: when clicking on prev/next i want to stay in that category and not go through all categories there are. I found out – from the wordpress codex page – there is code that will do that : previous_post_link(‘%link’, ‘Previous’, TRUE); . But when change the code in the single-wpcproduct.php the links disappear.

    Any suggestions?

    Here my webpage: https://lieselotte-berlin.de/

    thx,
    hiko

    https://www.ads-software.com/plugins/wp-catalogue/

Viewing 13 replies - 1 through 13 (of 13 total)
  • singapuree

    (@singapuree)

    Hi Maeve,
    I apologise, I should’ve checked to see if the problem I am experiencing had been reported before. I am having the same issue as hiko.
    I shall post my problem here and feel free to delete my thread.

    WordPress version: 3.9.3
    Plugin version: 1.7.1
    Link to my site: https://www.dreamoak.com

    I expected the plugin to do this: Clicking next or prev on a product, whilst within a category, should show next product in the currently selected category.

    Instead it did this: It jumps to the next product added chronologically, if that happens to be in another category then the category selection jumps to the category of the new product.

    Here’s what I’ve tried so far: I do not know what to try to resolve this.

    singapuree

    (@singapuree)

    Hi Maeve,
    I looked into your code

    <?php
    	if(get_option('next_prev')==1){
    	   echo '<p class="wpc-next-prev">';
    	   previous_post_link('%link', 'Previous');
    	   next_post_link('%link', 'Next');
    	   echo '</p>';
    	}
    	?>

    and I think may be the previous_post_link and next_post_link functions should be replaced with a custom function that cycles through posts depending on the category selected.
    For all products it could call these existing functions as default but if a category is selected than only a subset of posts should be cycled through.
    Can that be accomplished somehow?

    Plugin Author Maeve Lander

    (@enigmaweb)

    Thanks for writing in @singapuree. I’m working on a fix for this and will release an update shortly. Thanks.

    singapuree

    (@singapuree)

    Thank you Maeve, looking forward to the fix ??

    Plugin Author Maeve Lander

    (@enigmaweb)

    Ok fix released. Please update and let me know if this resolves the issue.

    singapuree

    (@singapuree)

    Hi Maeve,
    I upgraded but am experiencing random issues.
    The fix only seemed to work on the servers category on my website, then started exhibiting strange behaviour like jumping categories as before and also losing all layout formatting intermittently.
    How do I roll back?

    singapuree

    (@singapuree)

    To see what I am experieincing visit
    https://www.dreamoak.com/?wpccategories=tvstands
    Then select the first product and you’ll see that it only shows the previous link upon clicking this it takes you to servers category.

    Plugin Author Maeve Lander

    (@enigmaweb)

    Are you using any sort of caching plugin on this website?

    Hi Maeve,
    Sorry for delay in replying, been away.
    I don’t believe I am using any caching plugins, here is a list of the plugins used on my site:
    Contact Form 7
    Fourteen Extended
    Shortcodes Ultimate
    WordPress Shortcodes
    WordPress Importer
    WP Catalogue

    Thanks

    Hi Maeve,
    I was wondering if there had been any progress with the issue I am experiencing?
    I have posted a link again to demonstrate the problem.

    https://www.dreamoak.com/?wpccategories=tvstands

    Thanks in advance.
    Best wishes for the new year.

    Just upgraded to 1.7.4 and tested and it seems to be working fine.
    Thank you so much.
    ??

    Plugin Author Maeve Lander

    (@enigmaweb)

    Excellent. ?? Thanks for your patience Singapuree.

    Hi Maeve,

    Really great plugin, but I’m having this problem as well. The products on the page are advancing through as they were added chronologically.

    I have the most recent version installed.

    Here is a page on the site where it’s most noticeable: https://www.margueriteb.com/wpccategories/pastel-cabochon-bridal-jewelry/

    Thank you for your help in advance.

    best,
    Clytie

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘previous and next post from one category’ is closed to new replies.