Breadcrumbs ‘name’ or ‘item.name’ for posts without title

#200924
  • Resolved EnterCloud
    Rank Math free

    Hi support team,

    GSC returned Breadcrumbs error [Either ‘name’ or ‘item.name’ should be specified] because i have in my site posts without title but the ID in url,

    is there any solution to name the posts ID in breadcrumbs?

    Regards,
    Stathis

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please edit the first post on this ticket and include your WordPress & FTP 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/

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

    We really look forward to helping you.

    Thank you.

    Hi Reinelle,

    i use the premium theme “Viral by MyThemeShop” but now it’s free and there is no support section in the forum,

    i swiched from the theme’s breadcrumbs to rankmath because of this issue,

    many of those posts validated from GSC but left about 350 posts,

    can you please check if the theme support those type of breadcrumbs?

    Regards,
    Stathis

    Anas
    Rank Math business

    Hello,

    As most of your posts got validated on GSC, it is possible that the breadcrumbs are not applied correctly to these affected pages.

    We would like to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP 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.

    Hello,

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

    Thank you.

    Hello,

    Thank you for that information.

    Upon logging in, we’re getting this message:

    VERIFICATION REQUIRED: Additional verification is required for login. Please check the email address associated with the account for a verification link.

    I’ve attached a screenshot in the sensitive data section.

    Please disable the 2FA to further check your site.

    Looking forward to helping you.

    Thank you.

    Hi,

    The 2FA in Wordfence doesn’t enabled, but now i enabled the “Grace period to require 2FA”, can you please try again?

    Otherwise give me an email address to set up a new admin account, so you can verify,

    Regards,
    Stathis

    Ankit
    Rank Math business

    Hello,

    Thank you for your reply.

    I have looked into the post you have mentioned inside the sensitive data section, and I found that you haven’t entered any title for that post. Please enter the title, clear the cache and re-run the schema test. that will solve the error.

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

    Hi,

    i have many posts without title, never mind the title, so posts without title apears the ID, posts with title has no breadcrumbs issued,

    in first place in this ticket i asked if there is a solution to filter the post ID in breadcrumbs if the post doesn’t contain title,

    that’s all, is it possible?

    Regards,
    Stathis

    Hello,

    Thank you for the update.

    In this case, you can use and customize this filter:
    https://rankmath.com/kb/filters-hooks-api-developer/#change-remove-breadcrumb-items

    You’ll need to find the last crumb with something like count($crumbs) - 1 and will get you to the last crumb in the post and then you can do the checks and changes from there.

    Unfortunately, we don’t offer code/filter customization given our small team. If you’re not a developer, you may need to hire a developer to assist you.

    As much as we would love to offer customized solutions to each and every user we have, it just isn’t possible for a small company like ours with limited resources.

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Hi,

    thanks for your reply,

    maybe needed a small code like:

    if no title else the id,

    i appreciate for any help,

    Regards,
    Stathis

    Ankit
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today.

    Here is a filter you can customize.

    /**
     * this is an example to remove the second item in your post breadcrumbs
     * Allow changing or removing the Breadcrumb items
     *
     * @param array       $crumbs The crumbs array.
     * @param Breadcrumbs $this   Current breadcrumb object.
     */
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
            // Check if we are viewing single posts
    	if(is_singular('post')){	
                    // Apply here your custom login to generate the final
                    // element of the breadcrumb (the breadcrumb title)
                    $newBreadcrumbTitle = "example";
                    // The last element in the $crumbs array is the post's
                    // breadcrumb title, so we have to update it:
                    $crumbs[count($crumbs)-1] = $newBreadcrumbTitle;
    	}
            // And return the breadcrumbs
    	return $crumbs;
    }, 10, 2);

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

The ticket ‘Breadcrumbs ‘name’ or ‘item.name’ for posts without title’ is closed to new replies.