WordPress.org

Support

Support » Requests and Feedback » Changing the slug of some permalinks

Changing the slug of some permalinks

  • Hi,

    My request will be useful especially for people using non-English WordPress versions.

    There are some permalinks which are not translateable or changeable in WordPress. For example, we can change the slug of the permalinks for “category”. But we cannot change the slug of the permalink for “page”, “author” from the administration panel.

    Can these be changeable in the future versions of WordPress, and can they be changed from Options -> Permalinks section in panel like “category”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    There is no fixed slug for “page”. Pages get their slugs directly from the Page. If the page’s slug is “bongo” then the URL is http://example.com/bongo/ .

    The fixed bases are: author, search, comments, and feed. You can edit them by changing the relevant lines in rewrite.php.

    var $permalink_structure;
    	var $use_trailing_slashes;
    	var $category_base;
    	var $category_structure;
    	var $author_base = 'author';
    	var $author_structure;
    	var $date_structure;
    	var $page_structure;
    	var $search_base = 'search';
    	var $search_structure;
    	var $comments_base = 'comments';
    	var $feed_base = 'feed';

    Just change them there. While it would be nice if these were editable in the admin screens, you will run into the problem of people trying to set them to blank and then wondering why none of their permalinks work. They try that with the category base all the time, right now.

    Thank you very much.

    For “page” slug, I mean the posts’ pages like:

    http://wordpress.org/development/page/2/

    That one in WP lingo is called “paged” = when in multipost view (index, monthly or category archives, search) the number of the total posts is higher than the number set in Options > Reading to show.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing the slug of some permalinks’ is closed to new replies.