Duplicate Data In SDTT Tool

#80233
Viewing 10 replies - 1 through 10 (of 10 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
    ​​​​​​​
    I think we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP 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,

    The extra schema is being added by your theme. If you wish to use Rank math schema, please get in touch with your theme provider to help you disable the schema added y the their theme.

    Looking forward to helping you. Thank you.

    ​​​​​​

    I am also facing the same issue.
    The Newspaper theme is also your product. Isn’t it?

    What. In your website you have mentioned that your plugin is compatible with all mythemeshop plugin and themes.
    Here is the link
    https://rankmath.com/compatibility/mythemeshop-themes-plugins/
    null
    Here is the link https://prnt.sc/u7jnys

    Hello,

    The blogposting Schema is coming from something else on your website. Even when we switch to the default Twenty Twenty theme, the BlogPosting Schema is still present.

    You must check what is causing that by disabling everything and then enabling them one by one.

    I have done same thing.
    Disabled Newpaper theme. Cleared Full Cache. & the Blogposting schema Gone. So there is ussie with theme

    I found the culprit
    It’s The Mythemeshop Theme
    In Theme Function.php File
    This schema is generated by this function function mts_single_post_schema()

    function mts_single_post_schema() {
    
    	if ( is_singular( 'post' ) ) {
    
    		global $post, $mts_options;
    
    		if ( has_post_thumbnail( $post->ID ) && !empty( $mts_options['mts_logo'] ) ) {
    
    			$logo_id = mts_get_image_id_from_url( $mts_options['mts_logo'] );
    
    			if ( $logo_id ) {
    
    				$images  = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
    				$logo   = wp_get_attachment_image_src( $logo_id, 'full' );
    				$excerpt = mts_escape_text_tags( $post->post_excerpt );
    				$content = $excerpt === "" ? mb_substr( mts_escape_text_tags( $post->post_content ), 0, 110 ) : $excerpt;
    
    				$args = array(
    					"@context" => "http://schema.org",
    					"@type" => "BlogPosting",
    					"mainEntityOfPage" => array(
    						"@type" => "WebPage",
    						"@id"   => get_permalink( $post->ID )
    					),
    					"headline" => ( function_exists( '_wp_render_title_tag' ) ? wp_get_document_title() : wp_title( '', false, 'right' ) ),
    					"image" => array(
    						"@type"  => "ImageObject",
    						"url"   => $images[0],
    						"width"  => $images[1],
    						"height" => $images[2]
    					),
    					"datePublished" => get_the_time( DATE_ISO8601, $post->ID ),
    					"dateModified"  => get_post_modified_time(  DATE_ISO8601, __return_false(), $post->ID ),
    					"author" => array(
    						"@type" => "Person",
    						"name"  => mts_escape_text_tags( get_the_author_meta( 'display_name', $post->post_author ) )
    					),
    					"publisher" => array(
    						"@type" => "Organization",
    						"name"  => get_bloginfo( 'name' ),
    						"logo"  => array(
    							"@type"  => "ImageObject",
    							"url"	 => $logo[0],
    							"width"  => $logo[1],
    							"height" => $logo[2]
    						)
    					),
    					"description" => ( class_exists('WPSEO_Meta') ? WPSEO_Meta::get_value( 'metadesc' ) : $content )
    				);
    
    				echo '<script type="application/ld+json">' , PHP_EOL;
    				echo wp_json_encode( $args, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT ) , PHP_EOL;
    				echo '</script>' , PHP_EOL;
    			}
    		}
    	}
    }
    add_action( 'wp_head', 'mts_single_post_schema' );

    But i don’t know how to remove it without breaking its dependency (if any), please help

    • This reply was modified 4 years, 2 months ago by Bijay Nayak.

    Update I have commented `add_action( ‘wp_head’, ‘mts_single_post_schema’ );
    `
    this code and the duplicate schema went away.
    pleas tell me if I have done something wrong

    Hello,

    Thank you for the input.

    We are sharing it with the MyThemeShop team so they can fix this issue in an upcoming update.

    Thank you and we are glad that it is working fine now.

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

The ticket ‘Duplicate Data In SDTT Tool’ is closed to new replies.