• Resolved bward

    (@bward)


    I know this is not possible from the plugin itself. Can we script it?

    I used this script to noindex posts in specific categories. Is it possible to add/modify to have yoast remove these posts from the sitemap?

    Thank you!

    <?php if (is_single() && in_category(array(‘news’, ‘economic’, ‘education’, ‘government’, ‘religion’, ‘other’))) {
    echo ‘<meta name=”robots” content=”noindex, follow”>’;
    } ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Thread Starter bward

    (@bward)

    Makes sense, thank you for the reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Posts From Sitemap By Category…’ is closed to new replies.