<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>WordPress</anon>
    <anon>PHP</anon>
  </categories>
  <description>Wordpressの投稿一覧ページなどで最近の投稿にはNEWと表示させてみました。実装する方法を考えました。 1. 今日の日付と投稿日の日付を比較する 2. 差がn日以内なら NEW を表示 1. 今日の日付と投稿日の日付を比較する PHPで２つの日付からあと何日あるか調べる方法｜本を買わずに解決するWeb制作の小技 を参考にfunction.phpにコードを記述します。 &lt;?php // function.php $TODAY = strtotime(date('Y-m-d')); function check_new_post($date) { global $TODAY; $date =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2014%2F09%2F15%2F200647&quot; title=&quot;Wordpress 新しい投稿にNEWって表示したい。 - かもメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-09-15 20:06:47</published>
  <title>Wordpress 新しい投稿にNEWって表示したい。</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2014/09/15/200647</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
