0

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,

10
  • 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, 2013 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? Feb 11, 2013 at 14:27
  • Yoast's Articles are pages.
    – Max Yudin
    Feb 11, 2013 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. Feb 11, 2013 at 14:41
  • What about yoast.com/articles/wordpress-seo what you've mentioned in 'They both are posts'?
    – Max Yudin
    Feb 11, 2013 at 14:47

1 Answer 1

3

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.

1
  • Thanks!! The first plug in works to perfection to fix this issue.
    – Juan
    May 25, 2022 at 19:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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