WordPress.org

Ready to get started?Download WordPress

Forums

permalink generation incorrect? (6 posts)

  1. anatman
    Member
    Posted 8 years ago #

    Hi,
    I have set my permalinks structure to /%category%/%postname. This means, to my understanding, that i do not want any words in the permalinks like "section" or even "category", just the category names themselves and the postnames.
    However when i mouse-over my front page, for example over a post author's name, the link WP is generating reads mysite/AUTHOR/myname, or for another example over a category name the link reads mysite/CATEGORY/thecategoryname. These two words in capitals (AUTHOR and CATEGORY) are WP-generated, i didn't choose to use them. And they are in English - which is not the site's idiom.

    Can i get rid of these "extra" words? If not, i can live with them, but i need them in my language - where in the code can i change them?

    Thanks a lot,
    eduardo

  2. Beel
    Member
    Posted 8 years ago #

    These are just some of the ways one can get a listing of posts - by author, category, etc. If you do not want them to be displayed you may certainly remove the hyperlink tags in your theme.

  3. anatman
    Member
    Posted 8 years ago #

    I think i just found out that i would have to edit classes.php , which is somewhat an adventure (that is, if i want the links formatted as i said above, it would require me to hard-edit the default category base and author base).
    However, i think this could be an issue worth looking at for a complete i18n of WP, as to a non-english-speaking reader something like "author", "feed" or "search" is as criptografic as ?p= in the URI.
    Thanks Beel! I will post this to the appropriate mailing list.

  4. Beel
    Member
    Posted 8 years ago #

    You don't have to modify core files. If you don't want to have a link to posts by author, just delete the link tag surrounding the_author in your theme files.

  5. anatman
    Member
    Posted 8 years ago #

    But i do want the link, i just don't want the word "author" in english! It is as simple as removing the H from author.
    Thanks again

  6. anatman
    Member
    Posted 8 years ago #

    Allright, what i tried failed completely. All i can say is, you were right! No surprise here.

    Anyway, just would like to leave the observation that for a complete i18n, the default category base and author base should be configurable (same goes for the words "search" etc generated by the permalink structure...)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags