• We are using WordPress for a technical web site.
    One of the categories is languages, and three of its child categories are C#, C++ and C.
    But when the user click on the category name link, https://doamin.name/Categories/C#, rewrite changes this to
    index.php?category_name=C#.
    When this get processed by wp-page-header, it seems to lose all non alphanumeric characters from the get parameter, so C# becomes C, C++ becomes C, and C becomes C.
    So they all are processed as the same category.
    Is there a way in PHP of obtaining the get-parameters without losing the #,++ etc. ?
    It would be a bit boring to change the category names to csharp, cplusplus, and so on.
    I’d be very grateful for any help on this.
    Dave
    UK

Viewing 1 replies (of 1 total)
  • I tried using the HTML conversion characters in the categories to see if I could trick WP into accepting it without any code changes, but that’s a no go.
    So it looks like some hacking of WP’s processing of category names is necessary.
    No insights on the code changes yet. ??
    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Categories with non alphanum characters’ is closed to new replies.