WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mageguild
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/xml-sitemap-feed/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year 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

Tags

No tags yet.