Title: short code specs not working
Last modified: August 22, 2016

---

# short code specs not working

 *  Resolved [tmanx4wp](https://wordpress.org/support/users/tmanx4wp/)
 * (@tmanx4wp)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/short-code-specs-not-working/)
 * hello,
    this is my short code, however the posts are always full length and there
   are always 5 posts no matter what number i use and it pulls in the last 5 posts
   not the specified category. please advise thank you.
 * [tpg_get_posts cat=”jeweler” show_excerpt=250 fields=”title,byline,content,metadata”
   posts_per_page=21
    field_classes=”post_title=tpg-title-class,post_content=tpg-
   content-class,post_metadata=tpg-metadata-class, post_byline=tpg-byline-class”]
 * [https://wordpress.org/plugins/tpg-get-posts/](https://wordpress.org/plugins/tpg-get-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Criss Swaim](https://wordpress.org/support/users/cswaim/)
 * (@cswaim)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/short-code-specs-not-working/#post-5684540)
 * from your command: show_excerpt=250
 * from the doc:
    _**show\_excerpt** This option show\_excerpt=”true” will use the
   custom excerpt, if it exists, instead of the post content. It will use the entire
   excerpt entry. Default is “false”.
 * start simple and only add options as they are needed:
 *     ```
       [tpg_get_posts cat="jeweler" show_excerpt=true posts_per_page=21]
       ```
   
 * also, be sure to read the doc to understand the difference between numberposts
   and posts_per_page.

Viewing 1 replies (of 1 total)

The topic ‘short code specs not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tpg-get-posts_dfefe0.svg)
 * [TPG Get Posts](https://wordpress.org/plugins/tpg-get-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tpg-get-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tpg-get-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/tpg-get-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tpg-get-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tpg-get-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Criss Swaim](https://wordpress.org/support/users/cswaim/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/short-code-specs-not-working/#post-5684540)
 * Status: resolved