Support » Plugin: Better WordPress Google XML Sitemaps (support Sitemap Index, Multi-site and Google News) » [Plugin: Better WordPress Google XML Sitemaps] How to exclude a post type

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    Glad that it works well for you! To know how to exclude a post type, please read this: http://betterwp.net/wordpress-plugins/google-xml-sitemaps/#basic_api.

    If you have a post type named ‘test’, for example, use this in the filter function: $bwp_gxs->remove_module(‘post’, ‘test’);

    Hope that helps :), and thanks for using the plugin!

    Great thanks – and presumably if I want to exclude posts (but allow other custom post types) I would use:

    $bwp_gxs->remove_module( 'post', 'post' );

    It seems to have worked but thought it best to make sure.

    Thanks
    Simon

    Plugin Author Khang Minh

    (@oddoneout)

    Yes that’s correct :).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Better WordPress Google XML Sitemaps] How to exclude a post type’ is closed to new replies.