Title: Complete &quot;content&quot; in get_category_posts method
Last modified: August 21, 2016

---

# Complete "content" in get_category_posts method

 *  Resolved [vespino](https://wordpress.org/support/users/vespino/)
 * (@vespino)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/complete-content-in-get_category_posts-method/)
 * Is it possible to show the complete content value in the get_category_posts method?
   Only the excerpt + read more is returned now.
 * I’m also looking for a way to only return the full image instead of all images.
   thumbnail + thumbnail_images => full.
 * [https://wordpress.org/plugins/json-api/](https://wordpress.org/plugins/json-api/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [vespino](https://wordpress.org/support/users/vespino/)
 * (@vespino)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/complete-content-in-get_category_posts-method/#post-4687969)
 * I have changed this:
 * $this->set_content_value();
 * To:
 * $this->set_value(‘content’, apply_filters(‘the_content’, $wp_post->post_content));
 * in the models/post.php file as a temporary solution. If someone has a better 
   one, one that will not reset when an update presents itself, I’d love to hear
   it!
 *  Thread Starter [vespino](https://wordpress.org/support/users/vespino/)
 * (@vespino)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/complete-content-in-get_category_posts-method/#post-4688269)
 * Solved the problem by adding the following to my functions.php file:
 * function remove_more_json_api($content) {
    if(get_query_var(‘json’)){ global 
   $post; $content = preg_replace(‘/<!–more(.*?)?–>/’,”,$post->post_content); } 
   return $content; } add_filter(‘the_content’, ‘remove_more_json_api’, 1);

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Complete "content" in get_category_posts method’ 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/)

## Tags

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

 * 2 replies
 * 1 participant
 * Last reply from: [vespino](https://wordpress.org/support/users/vespino/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/complete-content-in-get_category_posts-method/#post-4688269)
 * Status: resolved