<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yakimoto1123</author_name>
  <author_url>https://blog.hatena.ne.jp/yakimoto1123/</author_url>
  <blog_title>y.akimotoの備忘録</blog_title>
  <blog_url>https://yakimoto1123.hatenadiary.org/</blog_url>
  <categories>
    <anon>Wordpress</anon>
  </categories>
  <description>Wordpressで一瞬はまったのでメモ。single.phpもcategory.phpもindex.phpもすべて同一のテンプレートファイルから記事のループを呼び出していたら、単一記事のページでis_single()が動作せず。記事ループ部分修正前 &lt;?php query_posts( 'cat=-3' ); if (have_posts()) : while (have_posts() ) : the_post(); (中略) if(is_single()): ?&gt; echo &quot;&lt;p&gt;hogehoge&lt;/p&gt;&quot;; endif; endwhile; wp_reset_query(); end…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyakimoto1123.hatenadiary.org%2Fentry%2F20110622%2F1308731812&quot; title=&quot;query_posts()を利用すると、is_single()が動作しない - y.akimotoの備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-06-22 17:36:52</published>
  <title>query_posts()を利用すると、is_single()が動作しない</title>
  <type>rich</type>
  <url>https://yakimoto1123.hatenadiary.org/entry/20110622/1308731812</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
