In this post Remove parent category from permalink? Basically only have the child category? there is a code that should remove the parent category from the permalinks of the categories . The problem is that it's not working for me . if i add that code, i get an error ,on the starting line of the added code.

Any reason for that ?

what i need is to remove the "category" from the permalink of categories (wordpress adds "category" in the permalink of the categories by default)

Thank you

link|improve this question
where did you add the code and what error do you get exactly? – Milo Jul 11 '11 at 17:37
i added the code to wp-includes/functions.php . i get this error Parse error: syntax error, unexpected $end in /home/myaccount/public_html/wp-includes/functions.php on line 4606 (the line where that code starts) – whitelord Jul 11 '11 at 19:51
sounds like you possibly deleted a closing curly brace or something from code above when you added that code in. – Milo Jul 11 '11 at 20:15
no,i added it exactly as it is there .i added it before the closing php tag , ?> – whitelord Jul 11 '11 at 20:34
well there's nothing on that line that would trigger an unexpected $end error without something being wrong with the code above. I've pasted it into a functions.php file myself and it works fine. – Milo Jul 11 '11 at 20:40
show 2 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.