Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    Using robots.txt is probably the simplest way to accomplish this (assuming you’re using pretty permalinks).

    User-agent: *
    Disallow: /testimonial/
    

    More info if you need it: https://support.google.com/webmasters/answer/6062608?hl=en

    If it helps, the plugin also has a filter for excluding testimonials from a front-end search on your site. Add this to your theme’s functions.php:
    add_filter( 'wpmtst_exclude_from_search', '__return_true' );

    • This reply was modified 7 years, 5 months ago by Chris Dillon.
    Plugin Contributor Chris Dillon

    (@cdillon27)

    Also, some SEO plugins may have settings to add noindex, nofollow meta tags for specific post types.

    Thread Starter shauncc

    (@shauncc)

    Thanks for your reply Chris, I think I’ll implement the robot.txt option.
    Shaun

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there a global setting to stop testimonials getting indexed?’ is closed to new replies.