Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stop generating query URLs on the author page #48251

Open
PoojaShreeGaur opened this issue Feb 20, 2023 · 1 comment
Open

How to stop generating query URLs on the author page #48251

PoojaShreeGaur opened this issue Feb 20, 2023 · 1 comment
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Bug An existing feature does not function as intended

Comments

@PoojaShreeGaur
Copy link

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

Screenshot 2023-02-20 at 6 49 26 PM

Screenshot 2023-02-20 at 6 50 02 PM

Screenshot 2023-02-20 at 6 51 04 PM

Step-by-step reproduction instructions

Screenshot 2023-02-20 at 6 49 26 PM

Screenshots, screen recording, code snippet

Screenshot 2023-02-20 at 6 50 02 PM

Screenshot 2023-02-20 at 6 51 04 PM

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

@kathrynwp kathrynwp added [Type] Bug An existing feature does not function as intended [Block] Query Loop Affects the Query Loop Block labels Feb 20, 2023
@Thelmachido
Copy link

This looks closely related to this issue --- Query block: Nicer URLs for paged quer

I think this can be closed as a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants