Title: Separating Post Categories using Visual Composer
Last modified: August 24, 2016

---

# Separating Post Categories using Visual Composer

 *  [kbgodfrey](https://wordpress.org/support/users/kbgodfrey/)
 * (@kbgodfrey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/separating-post-categories-using-visual-composer/)
 * I have visual composer installed in my WordPress CMS. I have two blog-roll “news”
   pages as well, but each should have a different post category for its news. I
   feel like this should be an easy query, but I can’t make it work.
 * This is the code in Visual Composer that I’m using to pull in all of the posts:
   [
   tpg_get_posts fields=”title,content” numberposts=2 field_classes=”post_title=
   tpg-title-class,post_content=tpg-content-class,” ]
 * This code works just fine – pulls in every post I’ve got. By this same logic,
   then, I thought that this code would work to pull in just a category (in this
   case, the category slug is “resources”
    [tpg_get_posts category=”resources” fields
   =”title,content” numberposts=2 field_classes=”post_title=tpg-title-class,post_content
   =tpg-content-class,” ]
 * However, it’s still just pulling in ALL of the posts. What am I missing to pull
   in just one category?????

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/separating-post-categories-using-visual-composer/#post-6049542)
 * Support for VC is with the developer –
 * [http://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431](http://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431)
 * As we have no way to support commercial products here.
 * [http://codex.wordpress.org/Forum_Welcome#Commercial_Products](http://codex.wordpress.org/Forum_Welcome#Commercial_Products)
 * If that’s part of a theme, you may need to contact the theme developer.
 *  Thread Starter [kbgodfrey](https://wordpress.org/support/users/kbgodfrey/)
 * (@kbgodfrey)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/separating-post-categories-using-visual-composer/#post-6049546)
 * It’s not really a Visual Composer issue – it’s a code question. ?

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

The topic ‘Separating Post Categories using Visual Composer’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [Multiple Blogs](https://wordpress.org/support/topic-tag/multiple-blogs/)
 * [segment](https://wordpress.org/support/topic-tag/segment/)
 * [separate](https://wordpress.org/support/topic-tag/separate/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kbgodfrey](https://wordpress.org/support/users/kbgodfrey/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/separating-post-categories-using-visual-composer/#post-6049546)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
