• Resolved UmbrellaWeb

    (@umbrellaweb)


    Hello,

    Currently moving away from YoastSEO and integrating RankMath on a dev site prior to migrating and updating the live site with rankmath (to replace yoast finally).

    We have however come accross some issues. Using WPSSO core and Json/ld plugin which work fine no issues.

    Have integrated the breadcrums into the theme without issues. I see that rather than implementing code directly into the breadcrumbs as yoast does you have decided to go down the json/ld route as its a preference for Google (although other methods are also supported and the way yoast does it inline within breadcrum code is fine and works great too).

    HOWEVER a few issues. turning on the schema module so we can use the json/ld rankmath provides for breadcrumbs doesnt work IF WPSSO plugins are activated. JUST to confirm also that we are not using the WPSSO breadcrumb module. Hoping to use the rankmath schema instead BUT that doesnt work IF any WPSSO plugin is active.

    NO errors are show in either your plugin OR WPSSO. Simply the rankmath breadcrumb json/ld is omitted i.e. its not included.

    Turning off the WPSSO plugins and rankmath then adds the breadcrumb json/ld code.

    Not good as we need to use (and prefer) the WPSSO plugins.

    Secondly, if we turn off the schema module in rank math and say go to the title settings screen the schema boxes are still avliable to use. Granted they may not output code onto the frontened BUT its redundant for them to even appear in admin side IF the module is turned off.

    The same is the case with the local SEO / knowledge graph module. Turining them off doesnt remove all the options from rankmath setting screens. Whay is that? Kind of defeats the purpose.

    Have tested this with a stock wordpress setup with no additional plugins and only the twenty twenty theme and the result is the same.

    using version 1.0.47.1 of the rankmath plugin.

    Can you help to fix the 2 above issues. Currently means we cannot move away from yoast πŸ™

Viewing 7 replies - 1 through 7 (of 7 total)
  • When WPSSO Core is active, it disables the ‘rank_math/opengraph/facebook’, ‘rank_math/opengraph/twitter’, and ‘rank_math/json_ld’ actions to avoid conflicts. Unfortunately it sounds like this also disables the Schema BreadcrumbList markup provided by Rank Math. If there’s a way to disable all the Rank Math Schema markup *except* for the BreadcrumbList markup, let me know and I’ll be happy to include that feature in WPSSO Core.

    js.

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    @jsmoriss thanks for the input. That would be a potential workaround. Hoping someone from the rankmath team can post an update…

    Plugin Author Rank Math

    (@rankmath)

    Hello @umbrellaweb

    Thank you for your message and sorry for missing out on a reply and the issue you are facing.

    @jsmoriss Can you please add the following code to remove all the Schema code except BreadcrumbList Schema generated by the Rank Math plugin?

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return isset( $data['BreadcrumbList'] ) ? [ $data['BreadcrumbList'] ] : [];
    }, 99, 2);

    That should resolve the conflict.

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    Hello @rankmath

    thanks for the upadte. Hoping that will work once implemented.

    @jsmoriss is that what you need? and / or do we use that provided code via a filter in functions file OR will you be implementing it directly within the plugin?

    @rankmath Thanks, although I believe the returned array should include the element key as well. πŸ˜‰

    
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return isset( $data['BreadcrumbList'] ) ? [ 'BreadcrumbList' => $data['BreadcrumbList'] ] : [];
    }, 99, 2);
    

    WPSSO Core includes many helper methods, so I’ll be using the following instead. πŸ™‚

    
    return SucomUtil::preg_grep_keys( '/^BreadcrumbList$/', $data );
    

    @umbrellaweb Yes, and WPSSO Core v8.2.3-dev.3 already includes this change.

    js.

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    @jsmoriss fantastic.

    So how would this work? IF rankmath is active AND schema module is active in rankmath then WPSSO will disable ALL but breadcrumbs? have I got that right?

    FYI, not getting wordpress org reply notifcations hence why the late reply. Simply cannot keep refreshing a page here ;(

    Plugin Author Rank Math

    (@rankmath)

    Hello @jsmoriss

    Thank you for your help. Appreciate it.

    Also, you can submit your plugin on our website once it is full compatible so other users would know about that:
    https://rankmath.com/compatibility/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Conflict WPSSO’ is closed to new replies.