<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nomunomu0504</author_name>
  <author_url>https://blog.hatena.ne.jp/nomunomu0504/</author_url>
  <blog_title>のむログ</blog_title>
  <blog_url>https://tech.nomunomu0504.dev/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>WordPress</anon>
    <anon>Web</anon>
  </categories>
  <description>WordPressの投稿ページでPHPコードを利用する WordPressでは、PHPで動的ページを生成しています。しかし、投稿ページや固定ページでは、PHPコードを直接利用することはできません。なので、「ショートコード」という方法を用いて利用できるようにします。 流れとして2パターン存在します。「ファイル別で管理する場合」「function.phpに直書きする場合」です。 2パターン紹介するので使いたい方を使ってください。 流れ1（ファイルで管理する） ・投稿・固定ページで処理したい内容が書かれたPHPファイルを用意する ・function.phpから対象のファイルを読み込み、ショートコード…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.nomunomu0504.dev%2Fentry%2F2018%2F07%2F14%2F002925&quot; title=&quot;WordPressの投稿ページでPHPを使う - のむログ&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/nomunomu0504/20190411/20190411145640.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-14 00:29:25</published>
  <title>WordPressの投稿ページでPHPを使う</title>
  <type>rich</type>
  <url>https://tech.nomunomu0504.dev/entry/2018/07/14/002925</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
