- This topic has 9 replies, 3 voices, and was last updated 4 years, 2 months ago by
Elvin.
-
AuthorPosts
-
March 1, 2022 at 12:32 pm #2138522
iamarghya
So, I used an element for showing the author meta below my post, and when I click on the Author name it took me to the author archive page…But I didn’t know if is it an inbuilt feature to have an author archive page? or it is created for that element because I hadn’t checked it earlier. As I am the only author I think having an author archive page can create duplicate content issues…So 1st of all answer me is this normal to have an author archive page or it is being created somehow? ☹.
March 1, 2022 at 2:45 pm #2138650Ying
StaffCustomer SupportHi there,
Author archive is generated automatically by WordPress.
But if your author meta is added by a block element, you can remove the dynamic link from the author name 🙂
March 1, 2022 at 8:34 pm #2138840iamarghya
So the author archive page was there from the start, from when I installed WordPress but I hadn’t checked it at all right? so as I am the only author is there any way to disable the author archive page ??
March 1, 2022 at 9:16 pm #2138856Elvin
StaffCustomer SupportHi there,
You can disable the author archive page with a plugin.
If you have SEO plugins installed, they can actually disable it for you.
Example – https://yoast.com/help/disable-enable-author-archives/Without plugin, you may have to resort to PHP snippets or htaccess.
Here’s a brief article about it – https://www.optimumcreative.com/disable-author-archive-author-page-or-author-url-in-wordpress/
March 1, 2022 at 9:40 pm #2138867iamarghya
if I want to add the PHP solution do I need to add it to the theme editor or I can add this by code snippets plugin?
March 1, 2022 at 10:14 pm #2138881Elvin
StaffCustomer Supportif I want to add the PHP solution do I need to add it to the theme editor or I can add this by code snippets plugin?
Code snippets is enough. 🙂
Here’s how to add PHP snippets –
https://docs.generatepress.com/article/adding-php/March 1, 2022 at 10:35 pm #2138890iamarghya
I read the article u gave me, so I have to just add the PHP code in the code snippets plugin and activate it and it will be done? right? and the PHP code in the article is correct, right?
March 1, 2022 at 10:40 pm #2138893Elvin
StaffCustomer SupportI read the article u gave me, so I have to just add the PHP code in the code snippets plugin and activate it and it will be done? right? and the PHP code in the article is correct, right?
Assuming you’ve copied it properly w/o any syntax issues then it should be fine.
What the PHP snippet does is, it redirects any user who try to access the author archive page to the home page(
wp_redirect( home_url() );).March 1, 2022 at 10:50 pm #2138902iamarghya
oh, that works…Thank you very much…Whenever a problem arrives the subscription is worth it❤. Thank you again.
March 1, 2022 at 10:52 pm #2138905Elvin
StaffCustomer SupportNo problem. 😀
-
AuthorPosts
- You must be logged in to reply to this topic.