1

I have an RSS feed setup for my custom post types, but I'm trying to add in all posts with the status 'draft'. Here's what I've tried that doesn't seem to be working at the moment :

  function draft_to_rss($qv) {
      if (isset($qv['feed']) && $qv['post_type'] == 'extension_cpt' )
          $qv['post_status'] = array( 'publish' , 'draft' );
      return $qv;
  }
  add_filter('request', 'draft_to_rss');

Is it possible to enable drafts to show up in the RSS feed for a specific custom post type?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.