Slash into category title are not replaced by hyphen
-
Hi and thank for your great plugin.
I have encountered a bug with the galleries urls.
My galleries titles was “YYYY/MM – title of my category”
But the plugin had created slugs like this “YYYY/MM—title-of-my-category”
So, the urls was not good and the gallery showed sometime “No images were found” but more strangelly, sometime the url showed another gallery with the same year.
And the best is i could’nt change the slug with the plugin, even i by change the title of the gallery…
I have finnally found the solution by change the slug and the title directly in the database with these SQL commandes (use with caution and backup before !!!) :
UPDATE wp_ngg_gallery SET slug = REPLACE (slug, '/', '-');
UPDATE wp_ngg_gallery SET title = REPLACE (title, '/', '-');
I think you should add a
stripslashes ( string $str ) : string
function in your code for solve this problem. Strangelly, the slashes in albums are replaced by hyphen ! Why not the galleries ?Hope that help someone and please correct this! ??
- The topic ‘Slash into category title are not replaced by hyphen’ is closed to new replies.