How to stop generating query URLs on the author page #48251
Labels
[Block] Query Loop
Affects the Query Loop Block
[Type] Bug
An existing feature does not function as intended
Description
Hi,
I have created author templates for different authors in theme twenty-twenty-three.
The template’s basic structure is given below –
header >Gorup>archive title > Post auther Biograpgy>Query loop >Post Tamplate (post featured image >Post title > Post Date)>Pagination >footer
but I am getting too many query URLs on the author page for every author.. how to stop this from generating. if I am doing wrong please let me know..
I explain in detail… Actually, I have created a regional news website in the Hindi language. multiple authors are in use… and that is why I have made a separate author page with the help of the 2023 theme template.
currently, I have 3 authors, which are given below
https://postinshort.in/author/postinshortoffice
https://postinshort.in/author/admin
https://postinshort.in/author/hameedsiddiqui
I was expecting that these pages will behave like just categories and tags if I explore older posts(archive). and actually, while I directly go on older posts it shows the normal hierarchy
https://postinshort.in/author/admin/page/3
https://postinshort.in/author/admin/page/4
https://postinshort.in/author/admin/page/5 and so on
https://postinshort.in/author/postinshortoffice/page/2
https://postinshort.in/author/postinshortoffice/page/3 and so on
These are normal archive pages like categories and tags and should not index in the google search console by default.
but Google search console shows (unsubmitted) thousands of query URLs and archive pages from the author’s page only
example-
https://postinshort.in/author/postinshortoffice/page/7?query-154-page=45&cst
https://postinshort.in/author/admin/page/33?query-154-page=72
https://postinshort.in/author/postinshortoffice?query-154-page=62&cst&query-18-page=2
https://postinshort.in/author/admin?query-154-page=15&cst
https://postinshort.in/author/admin/page/26?query-154-page=85&cst
3rd author (https://postinshort.in/author/hameedsiddiqui) has only 2 posts so it doesn’t have other pages for older posts (archives ).URLs for older pages and posts should not be indexed by default.
I can disallow it in the robots.txt file but I believe these query URLs should not be generated. also if these query URLs not existing so it should be removed from the google search console because it is not submitted through the sitemap. it should behave like categories and tags.
for example
https://postinshort.in/category/news/uttar-pradesh/page/2 and so on … this is not in the google search console
in fact, the Google search console shows only https://postinshort.in/category/news/uttar-pradesh which is correct.
On a news website, the author can be in any number. I have chosen the 2023 theme cz I wanted it simple and fully controlled.
Currently, the website has only approx 1000 posts (including web stories and pages) but query URLs are many thousands because of 2 authors. which is not normal. currently, I added noindex tag for this to prevent these query URLs from indexing. in the past thousands of query urls got indexed which are now slowly removing.
but still these query URLs are existing in noindex section
what is the solution for me (I am a non-technical person and have less knowledge of coding)
Thanks
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
WordPress:6.1.1
Theme: Twenty Twenty-Three
Please confirm that you have searched existing issues in the repo.
No
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: