SEO for attachments doesn’t work at all

#290908
  • Resolved forcesailru
    Rank Math free

    Hello and many thanks for the amazing plugin. Now I’m testing it to change on it from another one.

    Unfortunately almost nothing from SEO works for attachment.
    Generally, I’d be happy to see some attachments like a normal pages. So I expect to see with attachments all that I have for pages.

    I set all settings the same as for pages,
    BUT:
    1) no Rank Math SEO block appears in editor so it’s impossible to tune SEO for an attachment page
    2) keywords that have been saved with the previous SEO don’t appear on frontend attachment page

Viewing 13 replies - 1 through 13 (of 13 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    Please head over to your WordPress admin area > Rank Math > General Settings > Links, and ensure that the Redirect Attachments option is disabled.

    Once done, see if the SEO Meta Box is displayed in the Attachment Pages. Also, see if the keywords are displayed in the focus keyword field of the SEO Meta Box.

    Let us know how that goes.

    Thank you.

    It’s disabled

    Hello,

    We don’t have an option to add the meta box on the attachments anymore since those files are only expected to show as content on your posts/pages, and you should indeed work on the SEO of those pages/posts instead of the attachments themselves.

    However, you can set a global title and description from WP Dashboard > Rank Math > Titles & Meta > Attachments

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

    could you return this standard behavior to attachments to avoid depreciating attachments as an important post type for them who still use it for any reason?

    Hello,

    You can use the filter given below in your theme’s functions.php file to enable the meta box for attachments:

    add_filter( 'rank_math/metabox/add_seo_metabox', function( $value ) {
    	$post_type = isset( $_GET['post'] ) ? get_post_type( $_GET['post'] ) : '';
    	if ( 'attachment' === $post_type ) {
    		return true;
    	}
    	return $value;
    } );

    Hope this helps. Let us know if you need any other assistance.

    It works! Thank you!
    Just Facebook Description is empty (don’t take the value from snippet description).

    Hello,

    Glad that helped.

    Could you please share a sample affected URL of the attachment to check? You can add it in the sensitive data section

    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    Looking forward to helping you.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I can check that the description in the snippet editor is not showing up but it is being added correctly in the frontend:

    And this is also happening only when your use a hashtag like #alt_tag. If you fill in a simple text description then it will show up in the snippet editor.

    Hope this helps. Let us know if you need any other assistance.

    Should I expect that you fix it soon?

    Hello,

    Upon checking further, I was able to figure out that the metadata is not being for your images. And if you edit the snippet, you can see even if the description is set as #alt_tag it is showing zero characters:

    If you are using a Firewall, please whitelist this route:
    /wp-json/rankmath/v1/updateMeta

    Whitelisting the route should fix the issue.

    You can check this link for more information:
    https://rankmath.com/kb/meta-data-not-saving/#firewall

    Let us know how that goes. Looking forward to your update.

    I don’t use any Firewall on this testing site.
    Any way, you had a full access to the site.

    Many thanks for your reaction on my error reports. Unfortunately, all answers are absolutely useless.
    I believe, that there are some conditions when RankMath SEO works properly and satisfies the site developer expectations but I’m not able to change the site the way it’s satisfies the plugin’s expectations.

    So, I’ve given up to consider and testing the plugin.
    Thank you for co-operation.

    Hello,

    Rank Math doesn’t have any special requirements to be used. Our updateMeta route was being blocked on your site by a firewall on your server or Cloudflare and that needed to be whitelisted for saving the metadata.

    I can check that you have switched back to AIO SEO. We are sad to see you go but we respect your decision.

    Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)

The ticket ‘SEO for attachments doesn’t work at all’ is closed to new replies.