• Resolved JDTravel

    (@jdtravel)


    In the Reading Settings tab I set our posts page to display 10 blog posts. RankMath is creating Collection Page Schema Markup for this page but the markup does not include details of the 10 blog posts. I need the collection page schema markup to include the latest 10 blog posts. I’ve therefore manually created collection page schema markup to include the blog posts but now need to disable the RankMath generated Collection Page schema. Please can you help, thanks

    • This topic was modified 2 months, 1 week ago by JDTravel.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jdtravel,

    Thank you for contacting support.

    Our plugin will only add the URL of the posts into the Schema markup but since you require more information and have already included custom markup for that you can remove our CollectionPage Schema with the following filter:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    if ( is_home() ) {
    unset( $data['WebPage'] );
    }
    return $data;
    }, 99, 2);

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter JDTravel

    (@jdtravel)

    Thank you for the information, Apologies but I’m not a WordPress Developer. Please could you give me more information on where to place this code or point me in the right direction, Thanking you

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @jdtravel,
    ?
    Apologies for this oversight on our part.
    ?
    You can add the filter with one of the following methods:?https://rankmath.com/kb/wordpress-hooks-actions-filters/
    ?
    Don’t hesitate to get in touch if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.