fork download
  1. <?php
  2. $args = array(
  3. 'posts_per_page' => 999,
  4. 'offset'=> 1,
  5. 'category' => 1,
  6. 'numberposts' => 0,
  7. 'orderby' => 'title',
  8. 'order' => 'ASC',
  9. 'post_type' => 'post',
  10. 'post_status' => 'publish'
  11. );
  12.  
  13. $myposts = get_posts( $args );
  14. foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
  15. <p>
  16. <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  17. </p>
  18. <?php endforeach;
  19. wp_reset_postdata();
  20. ?>
Runtime error #stdin #stdout #stderr 0.02s 52472KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Call to undefined function get_posts() in /home/tBHFzr/prog.php on line 13