• Resolved richarddetering

    (@richarddetering)


    All my articles now have the author name and the standard WP author link. Rich result test for [ redundant link removed ] (or for any of my other pages): Warning Author URL is missing. Google says about this: AMP page is valid with warnings / Web Story is valid with warnings: AMP can be indexed, but there are some issues that might prevent it from getting full features, or it uses tags or attributes that are deprecated, and might become invalid in the future. So this issue is more serious than it looks at first sight. It’s a BUG in the plugin and needs to be repaired. Please assist and thanks for your time!

    • This topic was modified 3 years ago by Yui.
    • This topic was modified 3 years ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @richarddetering

    Thank you for the support topic and sorry for the inconvenience, can you please share if you are using any SEO plugin?

    Plugin Support Milind More

    (@milindmore22)

    Hello @richarddetering

    The Author URL is an optional field in structured data and not mandatory, If you are not using any SEO plugin, we will recommend using SEO plugins that are AMP compatible plugin from our ecosystem page.

    AMP plugin does provide basic structured data which is required by AMP markup, it’s not designed to provide Advanced SEO, we will recommend SEO plugins which is created to serve that purpose.

    for now, you can add the author URL by adding the following code snippet in your active theme’s functions.php or in a custom plugin.

    add_filter(
    	'amp_post_template_metadata',
    	function( $metadata, $quried_object ) {
    		$post_author = get_userdata( $quried_object->post_author );
    		if ( $post_author ) {
    			$author_url                = ( ! empty( $post_author->user_url ) ) ? $post_author->user_url : get_author_posts_url( $post_author->ID );
    			$metadata['author']['url'] = $author_url;
    		}
    		return $metadata;
    	},
    	10,
    	2
    );

    In case you want to add a different author URL you can add that into
    Users->Profile->Website

    Hope this helps!

    Thread Starter richarddetering

    (@richarddetering)

    Thanks for your prompt reply. Am not using any SEO plugin. My plugins are Child Theme Configurator, Disable Gutenberg, Instant Indexing, Really Simple SSL, ShortPixel Image Optimizer, Ultimate 410 and then of course AMP and AMP for GeneratePress. In AMP it says No validation errors yet detected for all plugins.

    Thread Starter richarddetering

    (@richarddetering)

    I don’t understand what a SEO plugin has to do with a warning that I have in the structured data? Please elaborate?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Richard, I have closed your other topic as you’ve created this one about authors.

    Please go easy on the links and just use the link field only. The anti-spam system thinks you are a spammer from your many redundant links that I have now cleaned up.

    Plugin Support Milind More

    (@milindmore22)

    Hello @richarddetering

    Structured data is read by Search Engine bots to formulate better search results in order to rank better, your site must have Structured data (SEO).

    As I explained before AMP plugin is not designed to serve structured data, its main purpose is to serve AMP pages, but some platforms like Google Search require it for certain experiences like the Top stories carousel (screenshot), so we add basic stuff.

    In order to have Advanced Structured data, you need to have a plugin specifically designed to serve that purpose.

    If you add plugins such as Yoast SEO, they will generate valid Structured data for your AMP and non-AMP pages.

    Plugin Support Milind More

    (@milindmore22)

    We hope you are able to resolve missing author URL, I’ll mark this as resolved Open a new support topic if you face further issues, also feel free to leave a plugin review, we would love to hear your feedback.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Author URL missing’ is closed to new replies.