When you go to a product, the prev/next navigation doesn’t remember any of these filter or sort settings. It only stays in the category and sorts according to most recent (a standard setting I think).
I have been researching this for weeks and cannot figure it out…I don’t understand how such a basic requirement doesn’t work (amongst Woocommerce widgets, no less).
I am not very experienced in PHP so any detailed/simple help is much appreciated!!
Thank you!!
https://www.ads-software.com/plugins/woocommerce/
]]>When you go to a product, the prev/next navigation doesn’t remember any of these filter or sort settings. It only stays in the category and sorts according to most recent (a standard setting I think).
I have been researching this for weeks and cannot figure it out…I don’t understand how such a basic requirement doesn’t work (amongst Woocommerce widgets, no less).
Is this a WP thing or should I be checking with Woocommerce?
I am not very experienced in PHP so any detailed/simple help is much appreciated!!
Thank you!!
]]>Hope this makes sense.
Here is where it is occurring:
https://srnnews.americancreative.us/opinion/cartoons/
Click on one of the cartoons and then use the arrows next to the pic to navigate to the prev or next posts. You’ll see what I’m talking about. Any idea why this might be happening?
https://www.ads-software.com/plugins/previous-and-next-post-in-same-taxonomy/
]]><?php
$adjacent_post = get_adjacent_post(false,'',false) ;
$the_ID = $adjacent_post->ID;
$progetti_home = new WP_Query('post_type=portfolio');
while($progetti_home->have_posts()) : $progetti_home->the_post();?>
// some code
How can I put the “$the_ID” var inside the WP_Query brackets to tell the loop only consider the post with that particular ID?
Thanks!
]]>I have a question that has been plaguing me for some time now. I have a link to one category in my global navigation. You are then able to navigate between adjacent posts within this category. For now, the previous/next buttons reside in the main content window (above each single post) but the client would like them to appear in a drop-down directly below the category link in my global nav. I have something similar happening with parent/children pages but I cannot seem to figure out how to do it with the previous_posts_link/next_posts_link buttons. Any help please? My code is as follows:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Thanks so much in advance. Once I figure this one out, the project is all wound up!
]]>I have a custom meta in my posts to specify if it is geo located or not (something like geo_adress, which is empty when the post is not geo located).
When inside the loop, I would like to get the previous and next adjacent post which ARE geo localised.
I guess (but maybe I’m wrong) that I have to manipulate the WP get_adjacent_post with filters but I don’t know how to do it.
Thanks!
]]>