• hello good I have this function and it does not hide the numbers
    https://ibb.co/pLqK74P

    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
        //Title is the firs key of the last sub array
        
        end($crumbs);              // move the internal pointer to the end of the array
        $last_key = key($crumbs);  // fetches the key of the element pointed to by the internal pointer
    
        //Here I don't use get_the_title because it run after filters are applied.
        //This causes that stars near title will appear in schema title
        $crumbs[$last_key][0] = get_post_field('post_title', get_the_ID(), 'raw');
        
        // And return the breadcrumbs
        return $crumbs;
    }, 10, 2);
    • This topic was modified 2 years, 6 months ago by Ocio132.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello, I remember that I gave you this code for an incompatibility with rank math plugin.

    That code should still works just fine.

    Did you insert into your child theme?

    Thread Starter Ocio132

    (@ocio132)

    with code snippets is set !!

    Plugin Contributor dudo

    (@dudo)

    You have my email, please contact me there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘hide numbers’ is closed to new replies.