<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hide_san99</author_name>
  <author_url>https://blog.hatena.ne.jp/hide_san99/</author_url>
  <blog_title>arms inc. Engineers' Blog</blog_title>
  <blog_url>https://tech.arms-soft.co.jp/</blog_url>
  <categories>
    <anon>WordPress</anon>
    <anon>PHP</anon>
  </categories>
  <description>こんにちは、コバヤシです。 今回はWordPressの投稿ページのパーマリンクにカスタムフィールドの値を使用する方法について書きます。 よくある方法 今回は、/hogehoge/【カスタムフィールドで設定した値】で投稿ページを表示したいと思います。 （カスタムフィールドのフィールド名はcodeとします） ネットで検索すると見つかるのが、以下の方法です。 functions.php &lt;?php function custom_rewrite_rule() { add_rewrite_rule( '^hogehoge/([0-9]+)/?$', 'index.php?post_type=xxxxx…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.arms-soft.co.jp%2Fentry%2F2024%2F05%2F29%2F090000&quot; title=&quot;カスタム投稿ページのパーマリンクにカスタムフィールドの値を使用する方法 - arms inc. Engineers&amp;#39; 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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/154391842/1555659217502624</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-05-29 09:00:00</published>
  <title>カスタム投稿ページのパーマリンクにカスタムフィールドの値を使用する方法</title>
  <type>rich</type>
  <url>https://tech.arms-soft.co.jp/entry/2024/05/29/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
