Title: Future posts
Last modified: January 5, 2017

---

# Future posts

 *  [mariods](https://wordpress.org/support/users/chaosm/)
 * (@chaosm)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/future-posts-2/)
 * hi i build an apk and the template use this api.
 * All works fine.
    The only problem is that in app appears the future posts.
 * How can i hide them and display only the published posts and not the scheduled?
   
   Thanks

Viewing 1 replies (of 1 total)

 *  [Goldenapps](https://wordpress.org/support/users/goldenapps/)
 * (@goldenapps)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/future-posts-2/#post-8807157)
 * hi
    go to plugin root and select singletons folder and find and open introspector.
   php find your function and add new line below query. for sample:
 * public function get_posts($query = false, $wp_posts = false) {
    global $post,
   $wp_query; $this->set_posts_query($query); $output = array(); ///// this line
   $args = array_merge( $wp_query->query, array( ‘post_type’ => ‘post’, ‘post_status’
   => ‘publish ) );
 *  query_posts( $args );
    while (have_posts()) { the_post(); if ($wp_posts) { $
   new_post = $post; } else { $new_post = new JSON_API_Post($post); } $output[] 
   = $new_post; } return $output; }
 * //////////or this line
    $args = array( ‘post_type’ => ‘post’, ‘post_status’ =
   > ‘publish’ );

Viewing 1 replies (of 1 total)

The topic ‘Future posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Goldenapps](https://wordpress.org/support/users/goldenapps/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/future-posts-2/#post-8807157)
 * Status: not resolved