WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the following basic code:

    <?php get_header(); ?>

$args = array(
'status'        => 'publish',
'post_type'     => 'radio',
'orderby'       => 'date',
'order'         => 'ASC',
'posts_per_page' => -1
// The Query
$query = new WP_Query( $args );

// The Loop
if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
        echo '<li>' . get_the_title() . '</li>';
} else {
    // no posts found
/* Restore original Post Data */

<?php get_footer(); ?>

and run it (under taxonomy.php) and I gets only one post - I have lot of 'radio' poststypes. What it worng here? Thanks!

share|improve this question
Do "radio" post types have titles? Why not try debugging inside your loop a little, or debugging your query. Try, after $query is defined, typing "var_dump($query);" and see what comes up. – GhostToast Jul 19 '13 at 18:14
yes the all 'radio' posts has a title. – user34406 Jul 19 '13 at 18:18
And how and what can I debug here? It's saw me only the 1st post :( – user34406 Jul 19 '13 at 18:19
Should not "status" be the "post_status"? codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters – M-R Jul 19 '13 at 18:35
That should work despite the status issue mentioned by @M-R (and which should be corrected). Do you have any filters that are altering posts_per_page? – s_ha_dum Jul 19 '13 at 18:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.