WordPress.org

Forums

How to remove is front from the author structure? (1 post)

  1. Cor van Noorloos
    Member
    Posted 4 years ago #

    Hello,

    I'm currently these few line of code to rename/translate my author structure:

    function cor_rewrite_author_base() {
    	global $wp_rewrite;
    	$wp_rewrite->author_base = 'auteur';
    }
    add_filter( 'init', 'cor_rewrite_author_base' );

    However when also using a custom permalink structure the author stucture would suddenly become http://example.com/the-permalink/author/%author%/.

    This unlike the category structure.

    Would someone know perhaps how to rewrite the author base AND remove is front perhaps?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Cor van Noorloos
  • This topic is not resolved
  • WordPress version: 3.1-3-17365

Tags

No tags yet.