Filter to remove Blog Snippet on homepage

#936082
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting the support.

    You’re right. This filter code doesn’t have the closing parenthesis, priority, and parameter count.

    You can use the following filter code instead:

    add_filter( 'rank_math/json_ld', function( $data, $json ) {
        if ( ( is_home() || is_front_page() ) && isset( $data['Blog'] ) ) {
            unset( $data['Blog'] );
        }
        return $data;
    }, 10, 2 );
    

    We really appreciate your input and shared this with our concerned team to update the filter code.

    Please don’t hesitate to let us know if you have any other questions.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.