Last active
August 29, 2015 14:05
-
-
Save marushu/df8d8dbb48301e2b0d68 to your computer and use it in GitHub Desktop.
50音順で出力やりたくてやってみた…(^0^;) いっぺんにダーッとループさせてア行、イ行とか書き出せないもんだろか…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // ア行 | |
$args = array( | |
'post_type' => 'media_research', | |
'posts_per_page' => -1, | |
'meta_query' => array( | |
'relation' => 'AND', | |
array( | |
'key' => 'media_kana', | |
'value' => 'あ', | |
'compare' => '>=', | |
), | |
array( | |
'key' => 'media_kana', | |
'value' => 'お', | |
'compare' => '<=' | |
), | |
), | |
'orderby' => 'meta_value', | |
'order' => 'ASC', | |
); | |
$orderby_kana_magazine_posts = get_posts( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment