Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How it is possible to display only the parent category of the post. It contains two sub categories and I want to eliminate it.

Example: myblog.com/parent_category/post_name

This is only what I want.

share|improve this question
There's a great post on how to do the opposite (remove parent, only show child category), which surely must contain the answer if you're capable but I don't have the WP/PHP-fu to edit this to a parent-only function. Any ideas? I'm also hoping to do this for my WP site. –  t-jam Oct 8 '12 at 0:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.