None of the settings work for custom post title and meta

#875063
  • Resolved Taco Fleur
    Rank Math pro

    None of the settings work for title and meta. For a custom post type I have defined certain rules and a thumbnail, I have cleared all cache but it doesn’t look like any of the plugin setting work.

    I am using the Astra theme and all plugins are up to date.

    Here is an example https://kettlebellexercises.fitness/physical-issue/wrist-pain/

    Is there a common thing to look at when custom post settings are not working?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    We apologize for the issue you are facing with the title and meta settings for your custom post type. It can be frustrating when things don’t work as expected.

    Here are a few common things to check when the settings for custom post types are not functioning:

    1. Custom Post Type Registration: Ensure that your custom post type is registered correctly and that it supports the necessary features, such as title, editor, and thumbnail. If these features are not enabled, Rank Math may not be able to apply its settings.

    2. Rank Math Settings: Double-check that you have configured the title and meta settings specifically for your custom post type in Rank Math. You can find these settings under Rank Math > Titles & Meta. Make sure you have set up the templates correctly for your custom post type.

    3. Theme Compatibility: Since you are using the Astra theme, ensure that there are no theme-specific settings that might override or conflict with Rank Math’s settings. Sometimes themes have their own SEO settings that can interfere.

    4. Plugin Conflicts: Even though all plugins are up to date, there could still be conflicts with other plugins. Try temporarily deactivating other plugins to see if that resolves the issue.

    5. Caching Issues: You mentioned clearing the cache, but ensure that you clear both your browser cache and any server-side caching (if applicable). Sometimes caching plugins can retain old data.

    6. Schema Settings: If you are using schema settings, ensure that they are correctly configured for your custom post type as well.

    If you’ve checked all of these and the issue persists, we recommend replying to this ticket so a human agent from the Rank Math Support team can assist you further. Thank you for raising this concern, and we hope to resolve it soon!

    Sources:
    Rank Math ‘Titles and Meta’ Options and Settings

    1) https://snipboard.io/saTPDn.jpg
    2) https://snipboard.io/zZs1Fg.jpg this is the thumbnail it should show https://snipboard.io/ARg1NK.jpg for https://kettlebellexercises.fitness/physical-issue/hand-or-finger-pain/
    3) I don’t recall ever seeing anything in regard for the Astra theme
    4) no change
    5) I used an external check and also cleared everything locally
    6) It’s set to article https://snipboard.io/Kh7fRg.jpg

    Hello,

    The URL https://kettlebellexercises.fitness/physical-issue/hand-or-finger-pain/ has a featured image, so the thumbnail in your screenshot will not be applied.

    You can also verify the title and description by using these tools:
    https://heymeta.com
    https://rankmath.com/tools/meta-tag-analyzer/

    Looking forward to helping you.

    Understood, I did add another url without featured image, and here is another example https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fkettlebellexercises.fitness%2Fphysical-issue%2Flower-back-pain%2F

    Hello,

    The OpenGraph image(Social preview image) uses primarily the image you set in the social tab within the Rank Math meta box while editing the page (og:image). If you set none, it then tries to use the featured image. If this is not available it uses the first image in the post. Where the post/page doesn’t have any image it then uses the default OpenGraph image set at WordPress dashboard > Rank Math > Titles & Meta > Global Meta > Opengraph Thumbnail.

    If you want to however force the use of the default/fallback opengraph image as og:image everywhere, you may need to use this filter:

    add_filter('rank_math/opengraph/pre_set_content_image', function() { return true; });

    And here’s a guide on how you can add the filter to your site:
    https://rankmath.com/kb/filters-hooks-api-developer/

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    Can I just confirm that you are saying.
    It first takes the image I set in the Global Meta, then the featured image, and then the one I set in the custom post for Thumbnail for Facebook?
    It doesn’t make sense because it says: When a featured image or an OpenGraph Image is not set for individual posts/pages/CPTs, this image will be used as a fallback thumbnail when your post is shared on Facebook. The recommended image size is 1200 x 630 pixels.

    But it is set.

    Hello,

    Just to clarify, the OpenGraph image process works as follows:

    1. Primary choice: The image set in the Social Tab within the Rank Math meta box while editing the post.

    2. If absent: The featured image is used.

    3. If none available: Rank Math tries to use the first image in the post.

    4. Fallback: If none of the above are present, the fallback OpenGraph image from Rank Math > Titles & Meta > Global Meta > Opengraph Thumbnail is applied.

    Since you’ve already set a featured image and a fallback OpenGraph image, make sure there are no theme or plugin conflicts affecting these settings.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    “4. Fallback: If none of the above are present, the fallback OpenGraph image from Rank Math > Titles & Meta > Global Meta > Opengraph Thumbnail is applied.”

    I have sent you several links that do NOT have a featured image set or any fallbacks but you keep referring to the one that did. I’ll give up on this one.

    Hello,

    Sorry for that. In this case, allow us to check the issue further in your WordPress dashboard.

    Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    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,

    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,

    Sorry for the confusion caused by the previous reply. The Thumbnail for Facebook option in the post type’s Titles & Meta settings is used for the OG Image of the archive page of that post type, not for the posts. Since the archive pages are not editable, we provide the option in the Titles & Meta settings. There is no option to set a default OG Image for all the posts of a specific post type.

    You can use the following filter to set a default thumbnail for the posts of the Physical Issue post type:

    add_filter( "rank_math/opengraph/facebook/image", function( $attachment_url ) {
    	if (get_post_type() == 'physical-issue' && is_single()) {
    		return 'https://kettlebellexercises.fitness/wp-content/uploads/2024/09/kettlebell-injuries.jpg';
    	}
    	return $attachment_url;
    });

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

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

The ticket ‘None of the settings work for custom post title and meta’ is closed to new replies.