Make Media Category URLs hierarchical
-
Thanks for this plugin – it’s easy to use and provides really useful functionality.
One thing that would make it even more useful is if you could please enable hierarchical URLs for hierarchical Media Categories.
This is a simple change in the call to register_taxonomy in the main plugin file: enhanced-media-library.php on about line 193.
Could you please change this code:
'rewrite' => array( 'slug' => wpuxss_eml_sanitize_slug( $params['rewrite']['slug'] ), 'with_front' => (bool) $params['rewrite']['with_front'] )
to this:
'rewrite' => array( 'slug' => wpuxss_eml_sanitize_slug( $params['rewrite']['slug'] ), 'with_front' => (bool) $params['rewrite']['with_front'], 'hierarchical' => (bool) $params['hierarchical'] )
This will allow the categories to retain their hierarchical structure on the front end and make it possible for child categories with the same name but different parent names to work as expected.
I’ve currently made this change myself but if you could make it on your end it will save me having to remember to redo it whenever there’s an update.Thanks!
- The topic ‘Make Media Category URLs hierarchical’ is closed to new replies.