• Resolved rp4rusty

    (@rp4rusty)


    Hi @blaz K.

    On the website I manage there is a portfolio section in which the votes of Rate my Post work correctly, but since some update (I do not know if the theme of the portfolio itself or the Rate my Post plugin), now appears below the votes the following code: {"@context": "https://schema.org", "@type": "LocalBusiness", "aggregateRating": {"@type": "AggregateRating", "bestRating": "5", "ratingCount": "16", "ratingValue": "4.9"}, "image": "https://image path.jpg", "name": "name", "description": "description"}
    – I have modified the urls and the data of the page to keep the web site anonymous in this post -. Although the results of the portfolio pages are not enriched with these votes in Google search engine, I would like to maintain the rating system in this section, if I can remove the code that now appears. If I desable the rich snippets function in the settings of the Rate my Post widget, this code disappears, but also the rich results of the other pages of the website, which I am not interested in. Is it possible to desable this function only in the portfolio section?

    Thanks in advance for your help.

    • This topic was modified 4 years, 10 months ago by rp4rusty.
    • This topic was modified 4 years, 10 months ago by rp4rusty.
    • This topic was modified 4 years, 10 months ago by rp4rusty.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Blaz K.

    (@blazk)

    Hi @rp4rusty,

    a user encountered a similar issue several months ago and if I remember correctly we tracked it down to a plugin for some specific custom post types. If you are using such a plugin, please let me know the name so I can test the compatibility.

    As for disabling structured data there you can do something like this:

    
    function blazzdev_structured_data( $structuredData ) {
    	if ( get_post_type() == 'book' ) {
    		return '';
    	}
    	return $structuredData;
    }
    
    add_filter( 'rmp_structured_data', 'blazzdev_structured_data' );
    

    Remember to replace book with your custom post type ??

    Regards,
    Blaz

    Thread Starter rp4rusty

    (@rp4rusty)

    Great job, 100% effective!

    Thanks again, Blaz.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling Rich snippets function only in one section of the website’ is closed to new replies.