Unless there’s a reason the subcategory URL has to be www.webshop.com/slug/category1/subcategory1
, I would modify this to use a hash instead – i.e. www.webshop.com/slug/category1#subcategory1
This way you won’t break WordPress’s permalink structure and you can still easily use the hash with JavaScript so render the correct content on the page.
Related Posts:
- Newbie question: no index.php? in my plain wordpress permalink
- How to change redirection route to a php page for making it only accessible by logged-in members?
- parts of url disappear when using # inside href=”” [closed]
- Create custom permalinks to show Custom Post Type’s relationship?
- Nginx WordPress and another Web app URL structure
- Modifying WP URL handing code?
- How to deal with a GET variable of ‘name’?
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- Unable to display multiple parameters from url by javascript through shortcodes
- Current WordPress Page Title as Search Parameter into A Tag
- How does one make a URL return dynamic JSON with custom Content Type?
- I want url from a file in media using title file
- bloginfo url in javascript
- Add a class to links in the visual editor (how to get old dialog back)
- How can I modify the permalink via a filter?
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- Calling a method from functions.php on a click of a button
- Get post meta in enqueued js file
- How to use WordPress (PHP) functions in AngularJS partials files?
- How to create a custom config file and get data using inline JS in a wordpress page
- Concatenate site_url and string doesn’t work
- Using an Image Slider twice on the same page
- What’s the proper way to use wp_enqueue_script/style?
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Archive dropdown styling not applied
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- Use WordPress’s Media Uploader/ Manager in non WordPress php application
- Get/Set wp.customize.previewer.previewUrl
- How to speed up admin-ajax.php in wordpress
- JQuery not working on WordPress Admin page [closed]
- How to make custom total price reactive in navigation
- Adding tawk.to code just before body tag on functions.php file
- Extract subdomain and relative address from a url
- How can I output a php value into a JS file within WordPress?
- Why does WordPress remove my variables in the URL?
- How to test nonce with AJAX – Plugin development
- Slider loading issue
- Creating a Multi-Level Associative Object Using AJAX
- Why do WordPress rewriites seem to work differently for posts vs pages?
- Performance impact of rewriting WordPress URLs
- remove wp floating submenu in wp dashboard
- search and replace preword from author
- How to complete two other input fields, completed the first
- Status 400 for AJAX POST Request with admin-ajax.php
- Need Help Fixing My Iframes [closed]
- wp_enqueue_scripts leads to error
- Passing UTM Parameters To Modify Page In WordPress
- Open post-content in archive page in a Modal box with bootstrap
- Creating own shortcode – echoeing php variable based on JS variable
- How to modify URL (add GET values) after front end form submission?
- How to add a do_action on refreshing of WP customizer?
- PhantomJS with wordpress
- Scrape external webpage for first image and add it to new post
- Add / Update Custom Fields After Select Pictures in Media Window
- Generate sidebar depending on height of post
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- WordPress add_rewrite_rules for custom URLs ending in .html
- Tell WP register script to load a script only when the entire page is loaded
- How do I get an external php page to load using javascript
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- trying to put an active hover to my custom nav category buttons [closed]
- How do I get my Javascript scripts working?
- How can I get my Media Uploader Button to function on 1 click rather than requiring 2 clicks?
- get db values for external js file
- Accessing an API with jQuery and AJAX
- Ajaxurl suddenly not defined
- WordPress is removing query variables like page, p from the URL of a custom static page
- html form: redirect page after form completes submit function and posts data
- Creating a brand attribute as a variable
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Add other class content with reference class value
- how can i redirect dynamic URL in worpress base on ID in htaccess or wp-config or function.php
- How do I integrate vanilla Javascript to a wordpress website?
- Rewrite rule not working, but only when parameter is text
- ACF values to Script with auto refresh
- WordPress Slider is not working
- WordPress/NGINX not respecting the category URL for new posts
- Pulling Products from an API
- Meta inserted through wp_insert_post gets messed up
- wordpress dependent dropdownlist using post type is not working
- Filtering markers on google map by WordPress category[SOLVED]
- Call jQuery function from PHP?
- How to call a function from functions.php with ajax?
- Full search and replace isn’t enough to make all pictures to be loaded with https
- scroll scrpit to particular button position to next id when click button
- Find the method which AJAX GET calls
- How to call javascript function (jquery) in a shortcode?
- Creating custom URL for async content
- Why this plugin is not working?
- Removing all my hardcoded URLs with get_site_url()
- Trying to fix multiple category drop down
- Facebook share button only share the_permalink(), without thumbnail, tilte, excerpt, etc
- get_option(‘admin_email’) not working in wordpress when using ajax call
- Whats wrong with my code? Need To add String to shortcode? [closed]
- how can I make content from a plugin hidden when user is logged in? [duplicate]
- append special url end of my website urls
- Disable Typed Parameters for JavaScript in PhpStorm? [closed]
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- How to create a WordPress PAGE in another folder?
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only