Support » Fixing WordPress » The word “category” displays in permalinks

Viewing 7 replies - 1 through 7 (of 7 total)
  • That’s what is supposed to happen. If you don’t want it to happen, may I suggest the search? People ask this all the time.

    edit: I realize now I misread your post slightly, but I still suggest the search first…

    OK, I did that and I modified my wp-includes/rewrite file as suggested in this thread:

    I removed the word “categories” from this line:

    if (empty($this->category_base))
    			$this->category_structure = $this->front . '/';

    I tried it with and without the backslash. Bothways now I have no category page. Try clicking on my link above. There will be nothing there. Can you view the section of code below and/or suggest an alternative?

    `function get_category_permastruct() {
    if (isset($this->category_structure)) {
    return $this->category_structure;

    if (empty($this->permalink_structure)) {
    $this->category_structure = ”;
    return false;

    if (empty($this->category_base))
    $this->category_structure = $this->front . ‘/’;
    $this->category_structure = $this->category_base . ‘/’;

    $this->category_structure .= ‘%category%’;

    return $this->category_structure;`

    p.s. I put the word “category” back into the rewrite file so my content would be there if anyone was viewing. But the hack did not work for me. Unless I need to remove it in multiple instances. Please advise… Thanks

    No, you shouldn’t mess around with it. There is a reason why it needs to be there.
    You can replace it in your admin interface with any other word.

    Moshu–is there a fix that would eliminate the redundancy of /category/(category)? It seems odd to have “category” in the URL. I haven’t seen this behavior on other blogs, and I don’t recall it being the case prior to upgrading to 2.3. Any advice besides semantics substitution? Thanks-

    It has been always there – when viewing category archives.

    I would also be interested in learning how to eliminate the word ‘/category/’ from the permalink URL. Has anyone come up with a solution? Maybe it’s an idea for a plugin we need.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The word “category” displays in permalinks’ is closed to new replies.