classic editor problems with Meta-Description

#76482
Viewing 14 replies - 1 through 14 (of 14 total)
  • Detlef
    Rank Math free

    No Idea?

    Hello,

    Thank you for contacting Rank Math today.

    Can you please give us some more details. I don’t see any issue with the description in the example link you gave us. Please check the screencast I added in the Sensitive Data Section.

    Looking forward to helping you. Thank you.

    Detlef
    Rank Math free

    Hello,

    I see the issue on your site and was able to reproduce it on my setup. The Rank Math’s auto-generate description function is showing the caption text when it’s added before the content. This is a bug in the plugin and we have logged it.

    Please allow us some time to test and release a fix. It should be added to the plugin in the upcoming update. For now, to fix the issue on your site I added the following code on line 168 in wp-content/plugins/seo-by-rank-math/vendor\mythemeshop\wordpress-helpers\src\helpers\class-wordpress.php:

    $content = \preg_replace( '#\s*\]*\].*?\[/caption\]\s*#is', '', $content );

    This seemed to have fixed the issue. Can you please confirm?

    Thank you.

    Detlef
    Rank Math free

    Thank you! Yes the issue with the 3 links is fixed.
    But I have still have problems with 188 posts (before your fix 239 posts with issues).
    Here some Examples:

    https://derflammenwerfer.de/indoorfeuershow-im-galabereich/
    https://derflammenwerfer.de/mittelalterliches-buergerfest-schweinfurt/
    https://derflammenwerfer.de/jonglierfestival-bruenn-tschechien/
    https://derflammenwerfer.de/firmenweihnachtsfeier-dreba-thueringen/

    Interesting is, if I transfer the posts from classic block into gutenberg blocks, all is fine…

    Hello,

    Rank Math does not use WP’s excerpt function instead we have created our own excerpt function which gets the paragraph from content that has the focus keyword or the first paragraph. In your content, the first paragraph has only 1 word.

    To change this and use WP excerpt please add following code to your theme’s functions.php file:

    
    add_filter( 'rank_math/frontend/description', function( $description ) {
    	if ( ! is_singular() ) {
    		return $description;
    	}
    	global $post;
    	$rank_math_description = get_post_meta( $post->ID, 'rank_math_description', true );
    	$focus_keywords        = get_post_meta( $post->ID, 'rank_math_focus_keyword', true );
    	if ( $rank_math_description || $focus_keywords || ! empty( $post->post_excerpt ) ) {
    		return $description;
    	}
    	return get_the_excerpt();
    });
    

    Hope that helps.

    Detlef
    Rank Math free

    Thanks for your explanation, is it possible to use the second paragraph or the first 160 signs for example) if no focus keyword is set in rank Math and the first paragraph has only 1 word.
    Because I don’t want to loose the advantage of the build in rank Math funktionality…

    Thanks a lot for great plugin!

    Hello,

    Thank you for your patience.

    We released a quick Beta update you can try to see if that helps.

    Please enable the Beta update by following this:
    https://rankmath.com/kb/version-control/#beta-updates
    https://rankmath.com/wp-content/uploads/2020/02/Rank-Math-Beta-Testing.jpg

    If you are unable to see an update, please clear Rank Math’s transients from:
    WP Dashboard >> Rank Math >> Status & Tools >> Database Tools >> Remove Rank Math Transients >> Remove transients
    https://i.rankmath.com/Pbu5J6

    Please clear the caches from the server and WordPress after updating.

    You can disable the Beta updates once you update to the latest version and the issue is fixed.

    Hope that helps. Thank you.

    Detlef
    Rank Math free

    The new betaversion changes the mistakes from the most posts. The other ones (17 Posts) are very few, so I changed them from classic edditor to Guutenberg blocks.
    I have only problems with this type of posts. The meta description (LED Lichtshow zur Weihnachtsfeier !This is wrong!) is different to the description in the sourcecode of the website (that one is correct)
    https://derflammenwerfer.de/firmenweihnachtsfeier-dreba-thueringen/

    Alberto
    Rank Math business

    Hello,

    After checking it I think I found why you are facing that issue on those posts. The block editor you are using there is (internally) setting the “block” with the image first. It contains the text “LED Lichtshow zur Weihnachtsfeier”.

    You have set Rank Math to use the %excerpt% var for those posts, and the excerpt var will take the first line that contains your post keyword or if there are not one with it, it will take the first line.

    Since in that post you haven’t set any keyword, it is taking the first line and since (internally) the block with the image goes first, it is displaying “LED Lichtshow zur Weihnachtsfeier”.

    But once you save the post and goes to the published version, Rank Math is getting the content as it is in the source code, so now the image block doesn’t go first, so it is taking the text that is first, in this case, the one you want: “TerminOrt: Dreba in ThüringenVeranstaltung: FirmenweihnachtsfeierDatum: 07. Dezember 2018Uhrzeit: 21.00 UhrShow: Leuchtshow zur Weihnachtsfeier”.

    You can try, if you set the focus keyword as something that contains some words of the phrase “TerminOrt: Dreba in ThüringenVeranstaltung: FirmenweihnachtsfeierDatum: 07. Dezember 2018Uhrzeit: 21.00 UhrShow: Leuchtshow zur Weihnachtsfeier”, Rank Math will pick the text you want in the preview (I have uploaded a screencast showing it in the Sensitive Data section).

    So it seems just an issue about how the blocks plugins manage internally the order of the blocks, but once it is displayed in the frontend, everything is loaded fine.

    Looking forward to help you.

    Detlef
    Rank Math free

    Thanks for the technical explanation.
    But thats mean for me that I can not relay an what I`m seeing in the Meta-Description preview of Rank Math, right?
    I would than rather prefer to see no preview if I havent changed the description manually for this post. Otherwise I think, the output is ok but actually its not…

    Alberto
    Rank Math business

    Hello,

    Well, usually you set the focus keyword you want to use in that post so that issue shouldn’t happen as long as you set one. In case you don’t set one, you can rely on the preview since that blocks plugin is messing with the order the content is being loaded in the editor.

    Looking forward to help you.

    Detlef
    Rank Math free

    Thanks for your time. So I´m looking forward that maybe in the future The meta-description preview will be showing what is written in the source code of the post.
    Thanks for great plugin!

    Hello,

    I am sorry but Rank math recognizes content as added on your post, in this case as added by the blocks plugin. We have added API access to the content analysis in the Rank Math plugin to make content from page builder plugins readable by Rank Math.

    You would need to contact the developer of the plugin by showing the following link:
    https://rankmath.com/kb/content-analysis-api/

    Many known companies have already added the compatibility, as it takes a few hours:
    https://rankmath.com/compatibility/divi/
    https://rankmath.com/compatibility/elementor/
    https://rankmath.com/compatibility/themify-builder/
    https://rankmath.com/compatibility/page-builder-framework/
    https://rankmath.com/compatibility/flothemes/

    I hope that helps. Please let us know if there’s anything else you need our assistance with. More than happy to help.

    Thank 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.

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

The ticket ‘classic editor problems with Meta-Description’ is closed to new replies.