WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

 
discard

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

Browse other questions tagged or ask your own question.