[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[Rank Math SEO Plugin] Required original attachment description


ghodke169
 Share

Recommended Posts

  • Support

Hello,

Thank you for contacting MyThemeShop today.

To use Media description in meta, please add below filter code to your active theme funcitons.php file:

add_action( 'rank_math/frontend/description', function( $description ) {
	if( is_attachment() ) {
		global $post;
		if( $post->post_content ) {
			return $post->post_content;
		}
	}
	return $description;
});

Hope that helps. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

Thank you for contacting MyThemeShop today.

To use Media description in meta, please add below filter code to your active theme funcitons.php file:

add_action( 'rank_math/frontend/description', function( $description ) {
	if( is_attachment() ) {
		global $post;
		if( $post->post_content ) {
			return $post->post_content;
		}
	}
	return $description;
});

Hope that helps. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

Glad that helped.

We would request you to take a couple of minutes to REVIEW the plugin and give it 5-STARS on WordPress.org, if not already 🙏🙏
https://link.mythemeshop.com/reviewrankmath

Your kind words motivate us and help us put more effort into the development of this plugin and make it even better.

We really need your positive feedback to push even harder, keep the plugin FREE, and continue the development of the plugin in full-swing.

If you are planning to do a 4-star review or anything less, please don't. Instead, reply here and let us understand your requirements so we can get a 5-star rating from you as well. Can not afford even a single user to be disappointed over anything.

Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...