Home > Website > 更新日順orderby=post_modifiedにハマる

更新日順orderby=post_modifiedにハマる

logo

wordpress 2.8.5。エントリーを投稿日順ではなく、更新日順に並べたくて、

$my_query = new WP_Query('orderby=post_modified&showposts=-1');

としても、更新日順指定が反映されないのにハマりました。
解決策はなぜか、

orderby=modified
にすればOK。らしい。なんでやねん。

コメント:0

コメント投稿欄
お名前を記憶しましょうか?

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)

Trackbacks:0

Trackback URL for this entry
http://nosaku.net/archives/1813/trackback
Listed below are links to weblogs that reference
更新日順orderby=post_modifiedにハマる from 写真をめざせ!(略して写め)

Home > Website > 更新日順orderby=post_modifiedにハマる

Calendar
« 2012 年 5月 »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
アーカイブ
メタ情報
RSS Feed
これ!おすすめ
Image of スカイ・クロラ
Counter

521590 Visitors

Return to page top