Title: arkion's Replies | WordPress.org

---

# arkion

  [  ](https://wordpress.org/support/users/arkion/)

 *   [Profile](https://wordpress.org/support/users/arkion/)
 *   [Topics Started](https://wordpress.org/support/users/arkion/topics/)
 *   [Replies Created](https://wordpress.org/support/users/arkion/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/arkion/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/arkion/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/arkion/engagements/)
 *   [Favorites](https://wordpress.org/support/users/arkion/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page Post on 1 “Page”](https://wordpress.org/support/topic/page-post-on-1-page/)
 *  [arkion](https://wordpress.org/support/users/arkion/)
 * (@arkion)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/page-post-on-1-page/#post-862040)
 * Try this code:
 *     ```
       <?php
        $lastposts = get_posts('numberposts=1&category=1');
        foreach($lastposts as $post) :
           setup_postdata($post);
        ?>
   
       <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a>
       <?php the_content(); ?>
   
       <?php endforeach; ?>
       ```
   
 * You can use other parameters to determine witch post you want to show like `$
   offset`
 * Have a look at that codex page for further reference
 * [http://codex.wordpress.org/Template_Tags/get_posts](http://codex.wordpress.org/Template_Tags/get_posts)

Viewing 1 replies (of 1 total)