{"author_url":"https://blog.hatena.ne.jp/reggaepunch/","height":"190","type":"rich","provider_url":"https://hatena.blog","title":"WordPress\u5185\u306e\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u5168\u3066\u53d6\u5f97\u3057\u3066\u4e00\u89a7\u306b\u3059\u308b\u3002","published":"2014-01-08 12:59:48","blog_title":"regepan\u306e\u306f\u3066\u306a\u30d6\u30ed\u30b0","image_url":"http://ecx.images-amazon.com/images/I/513lr9AKMOL.jpg","version":"1.0","blog_url":"https://regepan.hateblo.jp/","categories":[],"width":"100%","url":"https://regepan.hateblo.jp/entry/2014/01/08/125948","author_name":"reggaepunch","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fregepan.hateblo.jp%2Fentry%2F2014%2F01%2F08%2F125948\" title=\"WordPress\u5185\u306e\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3092\u5168\u3066\u53d6\u5f97\u3057\u3066\u4e00\u89a7\u306b\u3059\u308b\u3002 - regepan\u306e\u306f\u3066\u306a\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u554f\u984c\u70b9 \u30da\u30fc\u30b8\u30f3\u30b0\u304c\u304a\u304b\u3057\u3044\u3002 5\u30da\u30fc\u30b8\u76ee\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068not found\u306b\u306a\u308b\u3002\uff08\u30da\u30fc\u30b8\u306f\u3042\u308b\u306f\u305a\u306a\u306e\u306b\u3002\uff09 \u72b6\u6cc1 query_posts()\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u3002 pre_get_posts\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3001$query->set('post_type', array('hoge', 'foo')); \u3068\u3057\u3066\u53d6\u5f97\u3057\u305f\u3044\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30bf\u30a4\u30d7\u3092set\u3059\u308b\u3068archive-hoge.php\u3092\u9069\u7528\u3055\u305b\u3066\u3044\u305f\u306e\u306b\u3001 \u5916\u308c\u3066\u3057\u307e\u3046\u3002 \u89e3\u6c7a\u7b56 query_posts()\u3092\u4f7f\u3044\u307e\u3059\u3002 pre_get_posts\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002 \u7ba1\u7406\u753b\u9762\u306e \u8a2d\u5b9a\uff1e\u8868\u793a\u8a2d\u5b9a\uff1e1\u30da\u30fc\u30b8\u306b\u8868\u793a\u3059\u308b\u6700\u5927\u6295\u7a3f\u6570 \u30921\u306b\u3059\u308b\u3068\u89e3\u2026"}