<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>crosawassant</author_name>
  <author_url>https://blog.hatena.ne.jp/crosawassant/</author_url>
  <blog_title>crosawassant's blog</blog_title>
  <blog_url>https://crosawassant.hatenablog.com/</blog_url>
  <categories>
    <anon>WordPress</anon>
    <anon>Web制作</anon>
  </categories>
  <description>抜粋を取得して、何か入ってたら出力、入ってなかったらラッパータグごと出力しない、ということがやりたかったのですが、 &lt;?php $excerpt = get_the_excerpt(); ?&gt; &lt;?php if (!empty($excerpt) ) : ?&gt; &lt;div class=&quot;excerpt&quot;&gt;&lt;?php echo nl2br($excerpt); ?&gt;&lt;/div&gt; &lt;?php endif; ?&gt; こんなコードをかいたら、抜粋の内容が空でも何故かずらずらと出力されてる場面に遭遇…( ﾟдﾟ)まあ…仕様書読めよ自分という話です。 抜粋を入力していない場合は投稿内容の最初の 55個の単語ま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcrosawassant.hatenablog.com%2Fentry%2F2014%2F03%2F18%2F112506&quot; title=&quot;WordPressにイラッ！抜粋（the_excerpt()）が未入力だと本文（the_content）から拾ってくる仕様に対抗する - crosawassant&amp;#39;s blog&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>2014-03-18 11:25:06</published>
  <title>WordPressにイラッ！抜粋（the_excerpt()）が未入力だと本文（the_content）から拾ってくる仕様に対抗する</title>
  <type>rich</type>
  <url>https://crosawassant.hatenablog.com/entry/2014/03/18/112506</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
