<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekatsu</author_name>
  <author_url>https://blog.hatena.ne.jp/nekatsu/</author_url>
  <blog_title>ねかつちう。</blog_title>
  <blog_url>https://www.nekatsu.com/</blog_url>
  <categories>
    <anon>Wordpress</anon>
  </categories>
  <description>WordpressのウィジェットエリアでPHPを使うために、 「PHP Code Widget」や「Enhanced Text Widget」などのプラグインをお使いの方も多いと思います。 どちらも詳しい説明が要らないほどシンプルなプラグインですが、get_posts関数でサブクエリーを作ろうとすると、どうもうまくいきません。こちらのケースで半日ほど時間を潰してしまったので、解決方法をシェアしたいと思います。（原因を知ってしまえば「なーんだ」くらいのことです） ウィジェットエリアでget_postsが正常動作しない では早速、下記のコードをご覧ください。 &lt;?php $args = array…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.nekatsu.com%2Fentry%2Fwordpress-widgetarea-php&quot; title=&quot;【Wordpress】PHP Code Widgetプラグインでget_postsが動かない場合の解決策 - ねかつちう。&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nekatsu/20180204/20180204032454.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-13 07:30:00</published>
  <title>【Wordpress】PHP Code Widgetプラグインでget_postsが動かない場合の解決策</title>
  <type>rich</type>
  <url>https://www.nekatsu.com/entry/wordpress-widgetarea-php</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
