Title: No Sub-Category Posts in Loops
Author: Glenn Ansley
Published: <strong>30 janeiro, 2009</strong>
Last modified: 19 novembro, 2015

---

Pesquisar plugins

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://s.w.org/plugins/geopattern-icon/no-sub-category-posts-in-loop.svg)

# No Sub-Category Posts in Loops

 Por [Glenn Ansley](https://profiles.wordpress.org/blepoxp/)

[Baixar](https://downloads.wordpress.org/plugin/no-sub-category-posts-in-loop.zip)

 * [Detalhes](https://br.wordpress.org/plugins/no-sub-category-posts-in-loop/#description)
 * [Avaliações](https://br.wordpress.org/plugins/no-sub-category-posts-in-loop/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/no-sub-category-posts-in-loop/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/no-sub-category-posts-in-loop/#developers)

 [Suporte](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/)

## Descrição

Once activated, only posts from the current category are displayed in your loop (
no posts from sub cats).
 That’s all it does. No options. If you find you need options,
let me know and I’ll build them into it.

As of 0.4 I remove the filter after the main query is built so that it doesn’t interfere
with widgets.
 If you have a custom query or call wp_query on a category archive
template, you’ll need to add and remove the filters before and after your query.
Below is an example of how to do this if you use wp_query. Again, this is not necessary
unless you have modified queries in a template file.

    ```
    add_filter( 'posts_where', 'ft_nscp_mod_where' );
    query_posts( array( 'your-custom' => 'args' ) );
    remove_filter( 'posts_where', 'ft_nscp_mod_where' );
    ```

Its important that you remove what you add.

## Instalação

 1. Upload the directory “ft-no-subcats-in-loop” to the `/wp-content/plugins/` directory
 2. Ative o plugin por meio do menu “Plugins” no WordPress

## Perguntas frequentes

  Where can I find help or make suggestions?

http://fullthrottledevelopment.com/no-sub-category-posts-in-loop

## Avaliações

Não há avaliações para este plugin.

## Colaboradores e desenvolvedores

“No Sub-Category Posts in Loops” é um programa de código aberto. As seguintes pessoas
contribuíram para este plugin.

Colaboradores

 *   [ Glenn Ansley ](https://profiles.wordpress.org/blepoxp/)
 *   [ Michael Torbert ](https://profiles.wordpress.org/hallsofmontezuma/)

[Traduzir o “No Sub-Category Posts in Loops” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/no-sub-category-posts-in-loop)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/no-sub-category-posts-in-loop/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/no-sub-category-posts-in-loop/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/no-sub-category-posts-in-loop/)
por [RSS](https://plugins.trac.wordpress.org/log/no-sub-category-posts-in-loop/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

 * 0.5 – Fixed bug that broke plugin in 3.1. Props @ollybenson (http://gln.to/oshcw)
 * 0.4 – Fixed bug introduced with WordPress 3.1. Added inline docs. Removed filter
   after main query is built.
 * 0.3 – Modified directory structure so that plugin may be added and activated 
   from wp-admin
 * 0.2 – Forgot to define a global, preventing posts from appearing that should.(
   thanks to http://redfootwebdesign.com for the heads up!)
 * 0.1 – Original release.

## Meta

 *  Versão **0.4**
 *  Última atualização **10 anos atrás**
 *  Instalações ativas **100+**
 *  Versão do WordPress ** 3.1 ou superior **
 *  Testado até **4.4.34**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/no-sub-category-posts-in-loop/)
 * Tags
 * [categories](https://br.wordpress.org/plugins/tags/categories/)[cats](https://br.wordpress.org/plugins/tags/cats/)
   [loop](https://br.wordpress.org/plugins/tags/loop/)[posts](https://br.wordpress.org/plugins/tags/posts/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/no-sub-category-posts-in-loop/advanced/)

## Classificações

 5 de 5 estrelas.

 *  [  3 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/reviews/?filter=2)
 *  [  0 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/reviews/)

## Colaboradores

 *   [ Glenn Ansley ](https://profiles.wordpress.org/blepoxp/)
 *   [ Michael Torbert ](https://profiles.wordpress.org/hallsofmontezuma/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/no-sub-category-posts-in-loop/)

## Doar

Gostaria de contribuir para o desenvolvimento deste plugin?

 [ Doe para este plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8)