No meta description being generated

#20596
  • Resolved Chris
    Rank Math free

    Despite having the settings for my “Products” pages set to display “%excerpt%” under Single Product Description (see screenshot in Sensitive Data field) it’s not outputting any meta description. The source code gives me the error “<!– Admin only notice: this page has no meta description set. Please edit the page to add one, or setup a template in Rank Math -> Titles & Metas. –>”

    Thanks

    • This topic was modified 4 years, 11 months ago by Chris.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thanks for getting in touch with us today.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Chris
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    Thank you for your follow up.

    I was able to log into the site and checked the product page. On the product page, you have not added any excerpts. Kindly add the product excerpt and let me know how it goes.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Chris
    Rank Math free

    Thanks – it adds this if I manually add a custom meta description to each product, but isn’t %excerpt% supposed to automatically generate a description from the first part of the page if nothing is specified? It does this for posts.

    Thanks

    Hello,

    Thank you for contacting Rank Math today.

    You are right, the %excerpt% will be automatically generated from the post content but you have the editor hidden on the products CPT and you are generating the post data from ACF fields. This is the reason that this replacement variable does not work.
    You can however come up with some custom code to register the meta description from the ACF fields that you have on the page using the following filter on your theme’s functions.php file:

    /**
     * Allow changing the meta description sentence from within the theme.
     *
     * @param string $description The description sentence.
     */
    add_filter( 'rank_math/frontend/description', function( $description ) {
    	return $description;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​

    Chris
    Rank Math free

    Thanks!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘No meta description being generated’ is closed to new replies.