-
Hello,
I have been using the GeneratePress theme for quite sometime.
I am getting a bunch of search console errors against each indexed page.
After each indexed URL, I am getting a non-indexed URL that includes the following suffix:
<?php echo get_author_posts_url( get_the_author_meta( ‘ID’ ) ); ?>
So, for example, if I have a URL:
https://samplesite.com/post_one/
I get 2 listed items in the search console
https://samplesite.com/post_one/ – this is indexed properly
https://samplesite.com/post_one/<?php echo get_author_posts_url( get_the_author_meta( ‘ID’ ) ); ?> – this is not indexed and generating a 404 error
Author hook is not enabled on the post.
-
Hi there,
Not sure I understand the issue, can you link us to the actual site in question and point us to where we can see the issue?
-
I have shared the links in the private information
-
Hi there,
have you made any customizations that include the snippet:
<?php echo get_author_posts_url( get_the_author_meta( ‘ID’ ) ); ?>
eg. an author box ?
-
Hi David,
I did add an author hook in the footer as an element. However, I removed it. As of today, there is no text in any PHP file with that customization. At least I cannot find it within the theme files.
There is no 3rd party plugin for author box.
-
We can’t know where the code is from, unfortunately.
You don’t remember where did you add the code?
-
When you add the author hook in Element, you will get this code in one of the files. Apart from that, there is no other way the author code gets added to the code.
-
When you add the author hook in Element
What do you mean by author hook?
- You must be logged in to reply to this topic.