XML Sitemap & Google News feeds
[resolved] Excluding pages and selected post types (2 posts)

  1. mageguild
    Posted 3 years ago #

    I need to be able to exclude certain custom post types from appearing in my sitemap. Is this possible with this plugin? I am happy to do it manually if it is needed.


  2. RavanH
    Plugin Author

    Posted 3 years ago #

    Hi, there is a new version in the pipeline that will feature this on an options page but currently, you can only do the following. Set in your wp-config.php :

    define('XMLSF_POST_TYPE', 'post,page')

    Append any custom post types (comma separated) that you do want in the sitemap. Leave out custom post types that you do not want there :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.