Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Please update to the development version http://downloads.wordpress.org/plugin/xml-sitemap-feed.zip (download, unzip and upload via FTP; or uninstall the current version and install the zip via the WP back-end)

    Let me know ho it works out 🙂

    Thread Starter crosa

    (@crosa)

    Hi RavanH:

    Thanks for following up. I will definitely take a look.

    We were able to put in a workaround last week, which looks similar to what you are doing in the dev version. The edit was in xml-sitemap-feed/xml-sitemap.php , and I changed the XMLSF_NEWS_POST_TYPE from ‘post’ to ‘any’ as follows:

    if ( !defined(‘XMLSF_MEMORY_LIMIT’) )
    define(‘XMLSF_MEMORY_LIMIT’, ‘256M’);

    if ( !defined(‘XMLSF_POST_TYPE’) )
    define(‘XMLSF_POST_TYPE’, ‘any’);

    if ( !defined(‘XMLSF_NEWS_POST_TYPE’) )
    define(‘XMLSF_NEWS_POST_TYPE’, ‘any’);

    if ( !defined(‘XMLSF_NAME’) )
    define(‘XMLSF_NAME’, ‘sitemap.xml’);

    if ( !defined(‘XMLSF_NEWS_NAME’) )
    define(‘XMLSF_NEWS_NAME’, ‘sitemap-news.xml’);

    After making the change, an /audio custom post type story indexed for the first time, so I think we’re good for now.

    You can define these constants in wp-config.php so you would not have to modify the plugin. But seeing these constants will be replaced by back-end options in the next release, you might as well stick with your method for now 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Post Types support thrugh "constants"’ is closed to new replies.