HTTP and therefor web pages do not have any context, which is what you basically need, and only browsers can store context. You can add the context on the PHP side in a cookie, add to the page some JS code that inspects the cookie and based on it sets the actual url for the links you want to have.
for the benefit of people that do not have JS enabled, or google, set some “default” URL values there.
Related Posts:
- Working with Next and Prev links in Single Taxonomy Templates
- Display next 3 posts based on custom taxonomy
- Previous/Next custom post links within custom taxonomy
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Filter next_post_link() and previous_post_link() by meta_key?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- How can I get next post id after current post id for custom post type
- Problem excluding category from get_next_post
- specify meta_key / meta_value condition for prev_post_link and next_post_link
- Using previous_post_link and next_post_link to wrap around post sequence
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- next_post_link and previous_post_link in custom post type single page, in same non-custom category
- Next and Previous Posts of Same Parent
- Modify previous and next post links to current Authors Other posts
- Why are previous_post_link/next_post_link skipping some posts?
- Add Previous/Next Buttons to CPT Single Pages Only
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- How to get next post link of child custom post type from parent post and get next post link of parent post from the last child post?
- Prev/Next Navigation on Single Post Disappeared for Custom Post Type
- get_previous_post_link and get_next_post_link of custom post type that share custom field value
- Next/Previous Post Links in single-[custom-post-type].php file
- show previous/next post orderer by title in custom post types
- previous_posts_link returns null when querying custom post type
- Get terms by taxonomy AND post_type
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Taxonomy, Terms, and Template Files
- Get Custom Taxonomy ID within loop
- Custom Post Types not showing on Custom Taxonomy archive page
- custom post type or taxonomy
- Changing the priority of a custom taxonomy’s metabox
- How to list all categories and tags in a page?
- How to setup a Custom Taxonomy Term template
- Admin to user notices – best practices?
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Custom Taxonomy List links being re-written
- front end radio custom taxonomy with custom post type
- Bulk 301 redirect for custom post type
- How to query custom post type by term?
- Associate Taxonomies Across Post Types
- ‘category__and’ for custom taxonomy?
- Custom post query by taxonomy
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- How can I show recent posts from same taxonomy as the post currently being viewed?
- How to get the first term for the current taxonomy?
- Group custom posts by custom taxonomy names
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Get post from custom post type order by two taxonomies
- How to convert custom post type based list to a dropdown list?
- Wrong request query on cpt and tax
- Custom Taxonomy Archives on Custom Post type Page [duplicate]
- Custom post type multiple loop by taxonomy term
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- How to Filter custom post type by taxonomy?
- Listing posts under primary and secondary taxonomies
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Search by tag name and category
- Listing custom terms in custom post meta
- WordPress subpages to custom post types
- get_the_title() is returning results from previous loop
- How do I display a list showing custom post types nested within a taxonomy?
- Display posts with tag for custom post type only
- get_category_link() for custom post type does not include custom slug rewrite?
- How to show all taxonomies within custom post type loop
- Showing taxonomy terms on custom post type
- Custom Search | check multiple meta_value for search value
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- How to list custom post types on a custom post type page?
- Custom post type categories gives 404 error
- Using WP_Query, I want to show posts that are associated with a custom taxonomy term
- Query Posts that have Custom Taxonomy
- Foreach loop returning more than one item when querying taxonomy
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Most viewed post of custom post type
- Custom post type page with parameter
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- How can I loop at a Specific Taxonomy from a custom post type?
- Display custom post type taxonomy in a WordPress excerpt for current post
- Tags being removed upon updates to related posts: ACF/Genesis/WP5.4.1
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- pagination problem listing custom post types of taxonomy in wordpress
- Display CPT taxonomies as an archive page
- How to manage a dynamic multi-level page hierearchy system?
- Custom post edit page permalink links to edit page rather than the post
- Create a custom wp_query from a specific custom post type with specific taxonomy
- Show tags of custom post types in WordPress
- Show posts for current taxonomy
- WordPress get all post with like in terms [duplicate]
- Query Pulling the same post twice
- Cannot retrieve Custom Taxonomies (Disappeared)
- Custom Post type and Taxonomy in post URL error
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Loop multiple taxonomy in custom post
- How to Create Custom Post Type with Multiple Color Options?
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Require Custom Taxonomy for Custom Type
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Rewrite Rule for custom post type link with or without taxonomy terms
- How to add to taxonomies to a post type