WordPress.org

Ready to get started?Download WordPress

Forums

Changing the slug of some permalinks (4 posts)

  1. karaboga
    Member
    Posted 7 years ago #

    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"?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  3. karaboga
    Member
    Posted 7 years ago #

    Thank you very much.

    For "page" slug, I mean the posts' pages like:

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

  4. moshu
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic