Hello,
Thank you for contacting Rank Math today.
Can you please give us some more details? Rank Math doesn’t use wp_html_excpert() function in the excerpt variable. It uses it only in the meta description function.
If you are trying to change the meta description then please use the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#change-meta-description
I hope that helps.
Hi,
the problem happen when I use the %excerpt% variable in the meta description, a long error appears,
I made test and disabled the page builder and all other plugins and changed the theme but the problem still exist, there was long conversation about this with Michael, he logged in and made test too then said the problem was sent to the dev. team.
thank you
c.k.
Hello,
the problem happen when I use the %excerpt% variable in the meta description, a long error appears,
If using excerpt variable in the description is causing problem then please use following filter code to change the description: https://rankmath.com/kb/filters-hooks-api-developer/#change-meta-description
Also, which Page builder plugin are you using? I couldn’t reproduce this issue on my setup with WP Bakery Page Builder and Elementor plugin. If you could share your WP logins, I would love to take a look and fix it for you.
Looking forward to helping you.
Hi Pratik,
I don’t need the filter as I don’t want to change the description manually, I want to use the %excerpt% variable to create them.
I use siteorigin page builder, and Michael saw the error and the reply of siteorigion then sent the issue to dev. team but I didn’t get reply from you guys.
this is the reply from siteorigin:
The method RM is using, wp_html_excerpt, doesn’t allow for plugins/themes to filter it so we’re not able to account for it. Here’s an example of how that function can be used that allows other plugins to filter it.
https://github.com/WordPress/WordPress/blob/056dad9c2c1e642a353529cc3aa14b1335881162/wp-includes/comment.php#L2737-L2746
thanks
c.k.
Hello,
Rank Math uses wp_html_excerpt() function only to trim the content. We don’t use WP’s excerpt instead we generate our own excerpt content based on the Focus Keyword and content.
The only way to change this excerpt content is by using the following filter:
add_filter( 'rank_math/frontend/description', function( $description ) {
return $description;
});
I use siteorigin page builder, and Michael saw the error and the reply of siteorigion then sent the issue to dev. team but I didn’t get reply from you guys.
Yes, there were some compatibility issues that we fixed in v1.0.37.
If it’s still not working on your site then 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.
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.
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.