WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Entering a blank category prefix (5 posts)

  1. andresj
    Member
    Posted 6 years ago #

    Hi, I am using WordPress 2.2.1, and I wanted to set the category prefix to blank, but when I put it blank it ends up using /category/... Is there any way in which I can access to the category with slug computers by going to computers/ instead of /category/computers/?

    Thank you in advance. :)

  2. andresj
    Member
    Posted 6 years ago #

    As nobody answers the question (maybe I didn't wait enough time?) I will specify what I wanna do. I want to treat the categories as sections, so each post have only one category assigned to them. I'm using the simple tags plugin for more information about the post.

    So, my current post url is /%category%/%post%/, so I'd like to see a list of all the posts inside a category in /%category%/, but it won't let me (I would have to use blank, but then it's the default prefix /category/.

    I've seen that I can use /anything_here/%category%/%post%/ as the post url, and /anything_here/ as the category prefix, giving me what I want, if it were not for the anything_here text.

    Do you have any ideas? It's not really urgent, it's mostly aesthetical... but anyways I'd like it like that.

  3. iamPariah
    Member
    Posted 6 years ago #

    Hi, Andresj.

    I do the same thing on my sites--using categories as sections. There are on these forums several ongoing discussions about the default category slug. The short and sweet answer you want, though, is to put "/." (slash period) in the Category Base field on the Options > Permalinks screen. That will give you domain.com/%category%/ instead of domain.com/category/%category%/ .

  4. andresj
    Member
    Posted 6 years ago #

    thanks! I just changed the permalinks and it works perfectly! :)

  5. iamPariah
    Member
    Posted 6 years ago #

    My pleasure. Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic