Change the Author Permalink Structure : By default, WordPress shows author profiles as yoursite.com/author/name

However, you can change it to anything that you like, such yoursite.com/writer/name

The following code snippet needs to be pasted in the functions.php file.

Then, it changes the author permalink structure to /profile/name/

See code below: (line 4 you can change ‘profile’ to whatever slug name you would like.

add_action('init', 'cng_author_base');
function cng_author_base() {
    global $wp_rewrite;
    $author_slug = 'profile'; // change slug name
    $wp_rewrite->author_base = $author_slug;
}


 

Related Videos:

 


Related Posts:

How to make a Go-Back Input button with inline JavaScript

Show Post Thumbnails in RSS Feed – WordPress

Paginate Your WordPress Site Without Plugins

Redirect New Registered Users to a Specific Page – WordPress

Linux Kernel Can Be Exploited Remotely; Kernel Prior To 5.0.8 Affected

Automatically Link to Twitter Usernames in Content

WordPress by the Numbers Facts

Should I Choose a Hosted or Non-hosted Blogging Platform?

WordPress, SEO, and Social Media Marketing

The background-color CSS property

How do I activate my Windows 10? and rid myself of the watermark in the bottom right hand side?

CODING WITH CSS: The style attribute

Fake Google reCAPTCHA used to hide Android banking malware

How do I create money online using WordPress?

FAQ Hacked WordPress Website

Avada Theme Version 5.5.2

Introduction to JavaScript – Review Types and Operators

Formatting Text in WordPress Posts (Tiny MCE Advanced for WordPress)

What is a Blog?

How to Update: Automatically create media_buttons for shortcode selection

Introduction to JavaScript – Control Flow: if/else Statements

Helping humans speak to the computer

Learn Python Lists

College graduates not learning a programming language that’s vital for top tech jobs.

Show Popular Posts Without Plugins

How do I install plugins in WordPress?

Using the Current Year in Your Posts – WordPress

How do I start a WordPress blog? (hosting wordpress)

WordPress Posts vs Pages

Animatic – Advanced WordPress Frontend Animator

Why JavaScript developers are choosing TypeScript

GoogleBot Runs Latest Chrome – This Is Big News