How to Remove Author Name from WordPress Posts

Do you need to take away the writer identify out of your WordPress posts? By default, WordPress doesn’t have an choice to publish articles with out an writer identify. On this article, we’ll present you few other ways to take away writer identify out of your WordPress posts.

Remove author name from WordPress posts

Technique 1: Take away Writer Title from WordPress Posts Utilizing a Plugin

This methodology is simpler and really useful for all customers. Nevertheless, it might not work with all WordPress themes.

Very first thing it’s good to do is set up and activate the Show Hide Author plugin. For extra particulars, see our step-by-step information on how to install a WordPress plugin.

Upon activation, it’s good to go to Plugins » Present/Cover Writer web page to configure plugin settings.

Show/Hide Author settings

The plugin robotically hides writer identify for all post types. If you wish to show the writer identify for a selected submit kind, then it’s good to choose it on this display screen.

Under the submit sorts, you can too add customized URLs the place you need to disguise the writer identify.

This plugin can disguise writer identify generally. Nevertheless, your WordPress theme should present accompanying textual content earlier than the writer identify. For instance, ‘by John Smith’ would now simply present ‘by’.

To cover this byline, it’s good to go to your web site and take the mouse over to the textual content you need to disguise. Subsequent, it’s good to proper click on and choose Inspect tool out of your browser menu.

Now it’s good to find the div class containing your writer byline.

Byline text class

Subsequent, it’s good to copy the CSS class used right here after which paste it within the plugin settings below Superior choices.

Add byline class to hide it

Don’t neglect to click on on the save adjustments button to retailer your settings.

Technique 2: Manually Take away Writer Title from WordPress Posts

This methodology requires you to edit WordPress theme information. In case you haven’t accomplished this earlier than, then please check out our information on how to copy and paste code in WordPress.

Observe: Just be sure you create backup of your theme or child theme earlier than making any adjustments. If one thing goes improper, then this may show you how to simply revert adjustments.

WordPress themes use totally different variations of code to show writer identify. You’ll need to find the code chargeable for displaying the writer’s identify in your theme information and delete it.

Most typical places to search out this code are single.php, content material.php, archive.php, and index.php information.

In lots of instances, you won’t be able to search out the code that outputs writer identify. As an alternative, you can see a template tag outlined within the functions.php file or template-tags.php file.

For instance, the default Twenty Seventeen theme makes use of the operate twentyseventeen_posted_on to show writer identify and submit date / time. This operate is outlined in template-tags.php file.

operate twentyseventeen_posted_on() 
	// Get the writer identify; wrap it in a hyperlink.
	$byline = sprintf(
		_x( 'by %s', 'submit writer', 'twentyseventeen' ),
		'<span class="writer vcard"><a category="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . get_the_author() . '</a></span>'
	);
	// Lastly, let's write all of this to the web page.
	echo '<span class="posted-on">' . twentyseventeen_time_link() . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.

Now you simply have to take away the code that outputs the writer identify. Check out following instance:

operate twentyseventeen_posted_on() 

Don’t neglect to save lots of your adjustments and add the information again to your web site.

Now you can go to your web site to see your adjustments in motion:

Author name removed by manually editing theme files

Technique three: Create a Generic Writer Title for Publishing WordPress Posts

This methodology doesn’t take away the writer identify, however it may be used as a workaround.

Mainly you’ll create a generic writer identify and use it for all of your previous and future articles. You’ll need to alter the writer identify earlier than publishing every submit.

This methodology is irreversible. In case you do that and need to revert again, then you’ll have to edit every submit and assign it to the unique writer manually.

That being mentioned, let’s get began.

First add a new author to your WordPress web site and provides it a generic username resembling editorialteam.

Add new user

Subsequent, it’s good to go to Customers » All Customers web page and click on on the ‘Edit’ hyperlink under the username you simply added.

Edit user

On the consumer profile display screen, scroll right down to the ‘Nickname’ possibility and enter the identify you need to be displayed (for instance: Editorial Staff).

After that click on on the drop down menu subsequent to ‘Show identify publicly as’ possibility and choose the nickname you simply entered.

Select display name

You can too add a generic bio and even create a gravatar for that consumer account.

Now go to Posts » All Posts web page and click on on the screen options menu on the prime. Enter 999 for variety of gadgets to show.

Show all posts on screen

This can help you rapidly edit and alter writer identify for numerous posts.

You’ll want to choose all posts utilizing the checkbox after which choose edit below the majority actions drop down menu. After that click on on the ‘Apply’ button to proceed.

Select all posts for bulk editing

WordPress will now present you the majority enhancing choices. You’ll want to change the writer to the generic writer identify you added earlier after which click on on replace button.

Bulk change author name

WordPress will now replace all chosen posts and alter writer identify. Bear in mind, this course of might take a while relying on how briskly your WordPress hosting is.

In case you have greater than 999 posts, then you have to to go to web page 2 and repeat the method.

That’s all, now you can go to your web site to see it in motion.

Team author name

We hope this text helped you discover ways to take away writer identify from WordPress posts. You might also need to see our record of 25 effective ways to monetize your website.

In case you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can too discover us on Twitter and Facebook.

The submit How to Remove Author Name from WordPress Posts appeared first on WPBeginner.

Source link

Add a Comment

Your email address will not be published. Required fields are marked *