Viewing 1 replies (of 1 total)
  • Thread Starter shkasjon

    (@shkasjon)

    here is my code
    $args = array(
    ‘post_type’=> ‘flamingo_inbound’,
    ‘orderby’ => ‘ID’,
    ‘post_status’ => ‘publish’,
    ‘posts_per_page’ => -1 // this will retrive all the post that is published
    );
    $result = new WP_Query( $args );
    echo ‘

      ‘;
      if ( $result-> have_posts() ) : while ( $result->have_posts() ) : $result->the_post();
      echo ‘

    • ‘ . the_title() . ‘
    • ‘;
      endwhile;
      echo ‘

    ‘;
    endif; wp_reset_postdata();

Viewing 1 replies (of 1 total)
  • The topic ‘Display all post titles for author’ is closed to new replies.