カスタム投稿タイプのフィードを表示させようと思ったのですが、下記のような不具合が発生。 特定のカスタム投稿タイプのRSSが取得できない(全てメインフィードと同じフィードになる) WP_DEBUGがtrueのときに特定のカスタム投稿タイプのRSSフィードを表示するとNoticeエラーがでる Warning: Illegal offset type in isset or empty in /PATH/TO/wp-includes/post.php on line 828 Notice: Trying to get property of non-object in /PATH/TO/wp-includes/general-template.php on line 665 Notice: Trying to get property of non-object in /PATH/TO/wp-i
![巷でよく見かけるカスタム投稿タイプをRSSに反映させるコードはバグがあるので使ってはいけない](https://cdn-ak-scissors.b.st-hatena.com/image/square/6ea06ef9bfc851b9420086adb7fc2786e499df8c/height=288;version=1;width=512/https%3A%2F%2F2inc.org%2Fwp-content%2Fuploads%2F2012%2F06%2Ffeed.png)