Title: [Plugin: TPG Get Posts] get post for specific category
Last modified: August 20, 2016

---

# [Plugin: TPG Get Posts] get post for specific category

 *  Resolved [radio_mogul](https://wordpress.org/support/users/radio_mogul/)
 * (@radio_mogul)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-get-post-for-specific-category/)
 * I inserted the shortcode [tpg_get_posts(category=”my-category”)] and it added
   ALL posts, not the category specific ones. I’m trying to figure out how to remedy
   that. I’m just not that comfortable yet at messing around with css and php files.
 * *where “my-category” is either the name of the category or the slug
 * [http://wordpress.org/extend/plugins/tpg-get-posts/](http://wordpress.org/extend/plugins/tpg-get-posts/)
 * Thanks.

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

 *  Plugin Author [Criss Swaim](https://wordpress.org/support/users/cswaim/)
 * (@cswaim)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-get-post-for-specific-category/#post-2338636)
 * the parameter should not be set in () try
    [tpg_get_posts category=”my-category”]
 *  Thread Starter [radio_mogul](https://wordpress.org/support/users/radio_mogul/)
 * (@radio_mogul)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-get-post-for-specific-category/#post-2338692)
 * Just tried that. It didn’t work either with the slug or the category name. ???
 *  Plugin Author [Criss Swaim](https://wordpress.org/support/users/cswaim/)
 * (@cswaim)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-get-post-for-specific-category/#post-2338715)
 * Are you selecting by category or category_name
 * from the readme.txt
    * category_name. This allows for the selection of posts 
   by category_name.
 * * category. This allows for the selection of posts by category number.
 * If you need to use category id, check out the Simply Show Ids plugin. It displays
   the id on the category maintenance page.
 *  Thread Starter [radio_mogul](https://wordpress.org/support/users/radio_mogul/)
 * (@radio_mogul)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-get-post-for-specific-category/#post-2338721)
 * category_name worked! thanks

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

The topic ‘[Plugin: TPG Get Posts] get post for specific category’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [radio_mogul](https://wordpress.org/support/users/radio_mogul/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-tpg-get-posts-get-post-for-specific-category/#post-2338721)
 * Status: resolved