<?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>
  </categories>
  <description>WordPressで投稿の並び順を操作する時 まずは、カスタムフィールドの値で並べて カスタムフィールドの値が同じだったら投稿日順に並べる のように並び替えの条件を複数使いたい時があったのでメモ。 投稿に発売日を入力するrelease_timeというカスタムフィールドを作っていたとします。 このrelease_timeが新しい順(大きい順)にして、発売日が同じだと管理画面で登録したのが新しいもの順になるイメージです。release_timeにはstrtotimeのような感じで数値が入ってるものとします pre_get_posts で投稿のアーカイブページの時の並び順を変更させます。 &lt;?php…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2015%2F06%2F05%2F080000&quot; title=&quot;WordPress 投稿の並び順の指定を複数にしたい。 - かもメモ&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://ecx.images-amazon.com/images/I/61dNvzu3baL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-06-05 08:00:00</published>
  <title>WordPress 投稿の並び順の指定を複数にしたい。</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2015/06/05/080000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
