Plugin info

Total downloads: 5,877
Active installs: 100
Total reviews: 3
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 11/19/2015 (3694 days ago)
Added to WordPress: 1/30/2009 (16 years old)
Minimum WordPress version: 3.1
Tested up to WordPress version: 4.4.34
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3694 days ago • 3 reviews

22/100

Is No Sub-Category Posts in Loops abandoned?

Possibly abandoned (last update 3694 days ago).

Compatibility

Requires WordPress: 3.1
Tested up to: 4.4.34
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

CATS Job Listings
Rating 5.0/5 (2 reviews)Active installs 200
catnip
Rating 0.0/5 (0 reviews)Active installs 90
CTL Playful Kitty Lite
Rating 0.0/5 (0 reviews)Active installs 20

Description

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.

Installation

  1. Upload the directory “ft-no-subcats-in-loop” to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Frequently Asked Questions

Where can I find help or make suggestions?

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

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

  • 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.