<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aipacommander</author_name>
  <author_url>https://blog.hatena.ne.jp/aipacommander/</author_url>
  <blog_title>ITの隊長のブログ</blog_title>
  <blog_url>https://www.aipacommander.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>WordPress</anon>
  </categories>
  <description>仕事中に書いてみたけど、なんか違う気がしてきた。。。 下層ページかどうか判断する関数が欲しかった。 自分で考えたフローとしては トップページではないこと アクセスされたパスに対し、WordPressのwebルートで置換してみる 置換した値が '/' でなければ下層ページ または、クエリパラメータ（検索とかで使う?s=&quot;&quot;）があれば下層ページ WordPressのfunctions.phpに追記したら使えるど。 &lt;?php /** * 下層ページか判断する * @return bool */ function isUnderPage() { $url = (empty($_SERVER[&quot;HTT…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aipacommander.com%2Fentry%2F2016%2F10%2F01%2F135635&quot; title=&quot;【WordPress】下層ページかどうか判断するコード書いた - ITの隊長のブログ&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>http://cdn.mogile.archive.st-hatena.com/v1/image/aipacommander/297789129598967254.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-01 13:56:35</published>
  <title>【WordPress】下層ページかどうか判断するコード書いた</title>
  <type>rich</type>
  <url>https://www.aipacommander.com/entry/2016/10/01/135635</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
