Tried it today, immediately 11 problems :-/

#14306
  • Resolved Herbert
    Rank Math free

    Rank Math 1.0.32.1

    1. SEO Titles & Meta -> Posts -> Description (first field)

    If I want to have no auto generated meta description and I leave the field empty, it still generates meta description with first line/tag of content, how, why, is there a filter?

    Have to use %excerpt_only% as workaround in meta description field to have it really nonexistant in frontend.

    2. SEO Titles & Meta -> Posts -> Description (second field)

    If I want to have default no og:description, how? Field falls back to %excerpt% after saving empty.

    3. SEO Titles & Meta -> Posts -> Description (second field)

    What’s the differnce of %excerpt_only% an %excerpt% in og:description? No excerpt is saved at post, still %excerpt_only% shows auto generated text.

    4. SEO Titles & Meta -> Posts -> Description (second field)

    How can I set length of %excerpt% in og:description? Seems to be hardcoded to 155.

    5. Placeholder %page%

    Preview:

    Title page 2 of 4 – Sitename

    Preview should be (note additional separator and uppercase P):

    Title – Page 2 of 4 – Sitename

    6. Preview with placeholders

    Preview is cut off with … also in middle of entity, e.g. if %sep% is – preview shows like this (note the &nd part of – here):

    Longer title page 2 of 4 &nd

    7. Setting: Redirect Orphan Media

    “Leave empty for no redirection.” Can’t leave empty. Falls back to site url after saving.

    8. JSON-LD priceRange

    Configured in Organisation, but missing in frontend, causes warning in Google structured data test.

    9. JSON-LD image

    Google structured data test says Error: image is missing. All fields are configured at Organisation.

    10. JSON-LD hasMap

    How to switch off hasMap? Or how to configure it? hasMap currently always included and hardcoded to google.com/maps as soon as geo is set.

    11. JSON-LD sameAs

    Where/how to enter own URLs?

    That’s it for now.

    Switched back to other plugin. Thanks for your great plugin though, would like to use it, as soon as it does what I need. The setup wizard worked like a charm.

    Edit: Two more things:

    12. Setup wizard

    During setup for sitemap or similar at Taxonomies only Categories was shown, not Tags. Was able to switch on Tags later via settings though.

    13. Sitemap path

    My sites are registered at search engines with sitemap.xml path, had to add a manual redirect with RankMath, other SEO plugins redirect sitemap.xml to e.g. sitemap_index.xml automatically.

    • This topic was modified 4 years, 7 months ago by Herbert. Reason: Added two more things
    • This topic was modified 4 years, 6 months ago by Herbert.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    1). You can indeed workaround this by using the following filter to control the appearance of the description:

    /**
     * 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;
    });

    2). Like the first issue, this is hard coded into the plugin logic but you can always override this by using the following filter:

    /**
     * Allow developers to change the content of specific social meta tags.
     *
     * The dynamic part of the hook name. $network, is the network slug
     * and $og_property, is the property which we are outputting.
     *
     * @param string $content The content of the property.
     */
    add_filter( "rank_math/opengraph/{$network}/$og_property", function( $content ) {
    	return $content;
    });

    3). %excerpt% will contain an auto generated excerpt if the post’s excerpt field is not filled in. %excerpt_only% on the other hand will only used the entered excerpt on this post field.

    4). Search engines like Google truncate the description to 155 – 160 characters and this is the reason behind this logic. You can however define a custom excerpt length on your theme and call this excerpt using the following code in your functions.php file:

    add_filter( 'rank_math/frontend/description', function( $description ) {
    	if ( is_single() ) {
    		$description = get_the_excerpt();
    	}
    
    	return $description;
    });

    5)(6) and (7). Thank you for spotting this, I will pass this on to our developers so that it can be addressed in a future update.

    8) & (9). This could be related to caching on your end. Can you confirm that you cleared your site cache?

    10) & (11). You can customize the Json+ld data on your site by using the following filter:

    /**
     * Code to remove json+ld data
     * 
     */
    add_action( 'rank_math/head', function() {
    	global $wp_filter;
    	if ( isset( $wp_filter["rank_math/json_ld"] ) ) {
    		//unset property here
    	}
    });

    12) & (13). I have also logged this suggestion with our developers and this will be addressed in a future update. In regards to the last issue, you can also submit a new sitemap in your search console to workaround this.

    With all this information in mind, I hope that you will consider using Rank Math.

    Thank you.

    ​​​​​​​

    Thanks for your fast anwers.

    1. Have seen that filter in code, would like to know why/where first line/html-tag of content comes from if meta description default setting is empty.

    3. No excerpt is saved at post, still %excerpt_only% shows auto generated text in og:description.

    4. Question is for og:description, not meta description. Maybe you can consider filters for both description length variables?

    8. & 9. No caching was used, fields were missing in output.

    Hello,

    Please find below answers to your questions

    1. Have seen that filter in code, would like to know why/where first line/html-tag of content comes from if meta description default setting is empty.

    – The first line of a text is used as fallback content when the excerpt, descriptions fields are empty. We are doing it this way to prevent the description tag from showing nothing. If you want to remove the meta description tag, then please use below filter code:

    
    add_filter( 'rank_math/frontend/description', function( $description ) {
    	if ( is_single() ) {
                return '';
    	}
    
    	return $description;
    });
    

    3. No excerpt is saved at post, still %excerpt_only% shows auto generated text in og:description.

    – Are you using %excerpt_only% in the Facebook Description field or you’ve kept it blank?

    4. Question is for og:description, not meta description. Maybe you can consider filters for both description length variables?

    – Please use below filter code to change the og:description:

    
    add_filter( "rank_math/opengraph/facebook/og_description", function( $content ) {
       return $content; // Change content here.
    });
    

    8. & 9. No caching was used, fields were missing in output.

    – To check this issue, we’ll need your site’s login access. Can you create a staging site and add the access details in the Sensitive Data Section?

    Looking forward to helping you. Thank you.

    1. I do not want to remove the meta description tag in general. I want the html tag not existant if no meta description has been manually entered at single post. How can I switch off that “first line of a text” fallback?

    3. I used %excerpt_only% at og:description and still get data in output.

    Single Post Description: %excerpt_only%

    Description: %excerpt_only%

    4. That’s an unrelated answer, I suggested a filter for both description length variables.

    8. & 9. I have set up a sandbox and will provide the login.

    You can see also the other problems there.

    Note: The test posts already existed before installation of Rank Math and are not touched or resaved after install.

    New created or updated posts after Rank Math install seem to behave different, as far as I remember from the previous test.

    Hello,

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

    Thank you.

    Hello,

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

    Thank you.

    Hello,

    1. I do not want to remove the meta description tag in general. I want the html tag not existant if no meta description has been manually entered at single post. How can I switch off that “first line of a text” fallback?

    – We are intentionally using the content as a fallback description, so the description tags won’t be empty. To prevent the fallback function from loading, please add below code in your theme’s functions.php file:

    
    add_filter( 'rank_math/frontend/description', function( $description ) {
    
    	if ( is_singular() ) {
    		global $post;
    		$description = get_post_meta( $post->ID, 'rank_math_description', true );
    	}
    
    	return $description;
    });
    

    3. I used %excerpt_only% at og:description and still get data in output.
    Single Post Description: %excerpt_only%
    Description: %excerpt_only%

    – The og:description again shows the fallback description, if nothing is added in the Excerpt field. You can use below filter code to show the excerpt text in og & twitter description tags:

    
    add_filter( 'rank_math/opengraph/facebook/og_description', 'rank_math_social_description' );
    add_filter( 'rank_math/opengraph/twitter/twitter_description', 'rank_math_social_description' );
    function rank_math_social_description( $content ) {
    	if ( is_singular() ) {
    		global $post;
    		$content = $post->post_excerpt;
    	}
    
    	return $content;
    }
    

    8. & 9. I have set up a sandbox and will provide the login.

    – I see the Optician schema is missing some fields which are throwing a warning. I’ve forwarded this issue to our Development team, they will further debug this issue and release an update. For now, to fix the issue on your site, I added below filter code in your theme’s functions.php file:

    
    add_filter( 'rank_math/json_ld', function( $data, $json_ld ){
    	if ( isset( $data['Organization'] ) ) {
    		$data['Organization']['image']      = $data['Organization']['logo'];
    		$data['Organization']['telephone']  = $data['Organization']['contactPoint'][0]['telephone'];
    		$data['Organization']['priceRange'] = RankMath\Helper::get_settings( 'titles.price_range' );
    		unset( $data['Organization']['contactPoint'] );
    		unset( $data['Organization']['logo'] );
    	}
    
    	return $data;
    }, 20, 2 );
    

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

    Hope that helps. If there is anything else, please let us know.

    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 7 replies - 1 through 7 (of 7 total)

The ticket ‘Tried it today, immediately 11 problems :-/’ is closed to new replies.