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.

Can any one please explain how to add a post in WordPress without assigning it to any category.

Actually I want to display some news or some quick information. So, it does not come to any category in my blog. In this type of time, I do not want to assign to any category.

for example,

http://www.someSiteURL.com/this-is-news-about-something-awesome/

http://www.someSiteURL.com/wordpress-themes/Anan-wordpress-theme-review/

The first url is what i want to have. But by default, it automatically add "uncategorized".

My permalink structure is "/%category%/%postname%/" and I use Yoast to hide the word "category" in the urls.

Any one can help on this situation please?

And kindly i would like to let you know that, I do not want to add page for such things. Also, I do not want to add categories like "news" or "info" for this.

Thanks for your time,

share|improve this question
2  
You can't do that. The post will be assigned to "Uncategorized" category by default. However you can remove /%category%/ from permalink structure to hide category name from URL (and you'll not need the plugin anymore). Read about using permalinks first. –  Max Yudin Feb 11 '13 at 13:53
    
If you look at the yoast.com site, you can see urls like yoast.com/500-website-reviews and at the same time, you can see urls like yoast.com/articles/wordpress-seo . They both are posts. I checked it by viewing the source. (the body tag contains single-post class). How yoast has achieved that feature in his WP site? –  Rajeshkannan Mj Feb 11 '13 at 14:27
    
Yoast's Articles are pages. –  Max Yudin Feb 11 '13 at 14:33
    
No, They are posts. If you look inside the "view source" you can check the body tag. The tag for the post yoast.com/500-website-reviews contains class="single single-post postid-68173. SO, it must be a post. Generally in page the body tag will contain class="page page-id-2" similar things. –  Rajeshkannan Mj Feb 11 '13 at 14:41
    
What about yoast.com/articles/wordpress-seo what you've mentioned in 'They both are posts'? –  Max Yudin Feb 11 '13 at 14:47
show 6 more comments

1 Answer

Ok, I found the solution to the question I asked above. It is possible to get such permalinks by using plugins like

The first plugin "custom-permalinks" allows admin to edit the slug including category. So, it is now possible to make the permalink in anyway you want.

This is what i setup in the WordPress.

First I set the permalinks to /%category%/%postname%/ So the site by default will display permalink with category name.

Suppose, If i do not want to display the category name, I can use the permalink editor to get the permalink url the way i want.

I am just posting the answer, so people can make use of it.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.