Title: Custom post query with offset one post
Last modified: August 21, 2016

---

# Custom post query with offset one post

 *  [Shiful H](https://wordpress.org/support/users/wsaiful/)
 * (@wsaiful)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/custom-post-query-with-offset-one-post/)
 * Hi,
    I’m putting on my query offset=1 but it doesn’t work. Please help me to 
   correct this query.
 * <?php global $post;
    $args = array( ‘numberposts’ => 3, ‘offset’ => 1, ‘post_type’
   => ‘about-me-items’ ); $myposts = get_posts( $args ); foreach( $myposts as $post):
   setup_postdata($post); ?>
 * //contents
 * <?php endforeach;
    wp_reset_postdata(); ?>

The topic ‘Custom post query with offset one post’ is closed to new replies.

## Tags

 * [offset](https://wordpress.org/support/topic-tag/offset/)

 * 0 replies
 * 1 participant
 * Last reply from: [Shiful H](https://wordpress.org/support/users/wsaiful/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/custom-post-query-with-offset-one-post/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
