# getResource show specific articles

**URL:** <https://community.modx.com/t/getresource-show-specific-articles/730>\
**Category:** Support\
**Created:** [May 3, 2019, 4:26pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730 "2019-05-03T16:26:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nparker](https://community.modx.com/letter_avatar_proxy/v4/letter/n/4bbf92/32.png) [@nparker](https://community.modx.com/u/nparker)\
**Post date:** [May 3, 2019, 4:26pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730/1 "2019-05-03T16:26:37Z")

</div>

Hi, I have a blog and want to only show specific categories on certain pages, what getResource parameters should I use? Also I want the articles to have pagination on those pages.

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [May 3, 2019, 5:51pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730/2 "2019-05-03T17:51:09Z")

</div>

Do you have a special blog extra in use like [Articles](https://docs.modx.com/extras/revo/articles) or have you looked at this tutorial: [Creating a blog in MODX Revolution](https://docs.modx.com/revolution/2.x/case-studies-and-tutorials/creating-a-blog-in-modx-revolution)? One [part](https://docs.modx.com/revolution/2.x/case-studies-and-tutorials/creating-a-blog-in-modx-revolution#CreatingaBloginMODxRevolution-CreatingtheSections) of this tutorial shows the creation of categories.

---

<div class="post-metadata">

**Author:** ![nparker](https://community.modx.com/letter_avatar_proxy/v4/letter/n/4bbf92/32.png) [@nparker](https://community.modx.com/u/nparker)\
**Post date:** [May 3, 2019, 5:58pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730/3 "2019-05-03T17:58:13Z")

</div>

The categories are already created. I just need to know what to put in the code.  
Ex…

```php
[[getResources?
    &parents=`-1`
    &resources=``
    &data=``
    &field=``
    &tpl=``
    &includeTVs=`1`
    &showHidden=`1`
    &includeContent=`1`
    &limit=``
]]

```

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [May 3, 2019, 6:29pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730/4 "2019-05-03T18:29:35Z")

</div>

So are your categories single resources including the different articles? Then like stated in the tutorial mentioned above, this is your basic call:

```auto
[[!getResources?
  &element=`getResources`
  &tpl=`blogPost` // insert your chunk template here
  &parents=`[[*id]]`
  &includeTVs=`1`
  &includeContent=`1`
]]

```

Still this depends on what you are using to create your blog, if you could share some more insights on that.

---

<div class="post-metadata">

**Author:** ![nparker](https://community.modx.com/letter_avatar_proxy/v4/letter/n/4bbf92/32.png) [@nparker](https://community.modx.com/u/nparker)\
**Post date:** [May 3, 2019, 6:40pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730/5 "2019-05-03T18:40:46Z")

</div>

No. All the articles are listed under Newsroom. They each have tags that separate them out such as Newsletters or Stories. I want to only pull articles that are Newsletters onto a Page I create titled Newsletters.

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [May 4, 2019, 8:58am UTC](https://community.modx.com/t/getresource-show-specific-articles/730/6 "2019-05-04T08:58:14Z")

</div>

Have you tried using `[[!getResourcesTag? ...]` like mentioned [here](https://docs.modx.com/revolution/2.x/case-studies-and-tutorials/creating-a-blog-in-modx-revolution#CreatingaBloginMODxRevolution-CreatingtheSections)?

Again, we could need more info on how you did set up your blog. Which MODX Version are you running, which extras are installed, how does your category template look like, etc.

---

<div class="post-metadata">

**Author:** ![chrisandy](https://community.modx.com/user_avatar/community.modx.com/chrisandy/32/340_2.png) [@chrisandy](https://community.modx.com/u/chrisandy)\
**Post date:** [May 7, 2019, 6:12pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730/7 "2019-05-07T18:12:55Z")

</div>

Like this…

```auto
&tvFilters=`articlestags==%[[*pagetitle]]%`

```

---

<div class="post-metadata">

**Author:** ![nparker](https://community.modx.com/letter_avatar_proxy/v4/letter/n/4bbf92/32.png) [@nparker](https://community.modx.com/u/nparker)\
**Post date:** [May 13, 2019, 6:56pm UTC](https://community.modx.com/t/getresource-show-specific-articles/730/8 "2019-05-13T18:56:02Z")

</div>

Thanks, I will try that.
