Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Search console errors

  • 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/&lt;?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?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.