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?????
- The topic ‘Separating Post Categories using Visual Composer’ is closed to new replies.