<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jahyang</author_name>
  <author_url>https://blog.hatena.ne.jp/jahyang/</author_url>
  <blog_title>Real Slow Life -&gt;</blog_title>
  <blog_url>https://jahyang.realslowlife.com/</blog_url>
  <categories>
    <anon>デジタル・IT</anon>
  </categories>
  <description>functions.php テーマディレクトリにphp作成 投稿にショートコードの埋め込み 投稿内や固定ページのカスタムhtmlブロックなどにPHPコードを書いてもセキュリティ上実行されません。 独自のコードをページ上で実行させたい場合は、function.phpにコードを買いて、ショートコードを作って記事に貼り付けます。 functions.php テーマディレクトリの中の指定のファイルをショートコード化するコードをfunctions.phpに追記します。 function include_my_php($params = array()) { extract(shortcode_atts(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjahyang.realslowlife.com%2Fentry%2Fwordpress-php-shortcode%2F&quot; title=&quot;Wordpressの投稿でPHPコードを実行させる方法 - Real Slow Life -&amp;gt;&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://blog.minasegawa.com/wp-content/uploads/nat-Qerg85B7JDI-unsplash2-1024x576.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-02 13:37:09</published>
  <title>Wordpressの投稿でPHPコードを実行させる方法</title>
  <type>rich</type>
  <url>https://jahyang.realslowlife.com/entry/wordpress-php-shortcode/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
