Title: Include category children?
Last modified: August 31, 2016

---

# Include category children?

 *  Resolved [sonofbruce](https://wordpress.org/support/users/sonofbruce/)
 * (@sonofbruce)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/include-category-children/)
 * Hi Robert, I have the randomizer set to one category (poems), but I notice that
   it doesn’t seem to be picking up any posts in the several child categories (translations,
   erasures, etc.) for that category. Years ago I got in the habit of not putting
   a single post in both the parent and child categories because then it would be
   shown twice in the archive page for the parent category, but I believe that’s
   no longer the case, so I’m wondering if I should get in the habit of redundant
   categorizing now to make sure that all posts are available to the randomizer.
   Or is there a way to tweak the plugin settings so it will include the child categories?
 * [https://wordpress.org/plugins/better-random-redirect/](https://wordpress.org/plugins/better-random-redirect/)

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

 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/include-category-children/#post-7429530)
 * Hey Dave,
 * The randomiser doesn’t (currently) take into account child categories for its
   pool of eligible pages or posts. Definitely could be a useful option to add for
   a future release.
 * Unfortunately, I had a quick look through the codebase to refresh my memory, 
   and it looks like implementing the cascading parent-child query will be a non-
   trivial piece of work. So, on my radar, but not likely to get to it in a very
   short span of time, sorry to say.
 * There is a plugin that claims to let you “Auto select parent categories when 
   a sub category is selected” here: [https://en-gb.wordpress.org/plugins/category-parent-children-selector/](https://en-gb.wordpress.org/plugins/category-parent-children-selector/)—
   haven’t tested it, but that could help with automation going forward.
 * To back-fill parents from child-only-assigned categories, there appears to be
   this bit of Stackexchange code: [http://wordpress.stackexchange.com/questions/133627/assign-parent-category-to-all-posts-that-are-already-assigned-to-child-category](http://wordpress.stackexchange.com/questions/133627/assign-parent-category-to-all-posts-that-are-already-assigned-to-child-category)—
   again, back everything up and use with caution.
 * Hope that helps, Dave!
 * Best,
    Robert
 *  Thread Starter [sonofbruce](https://wordpress.org/support/users/sonofbruce/)
 * (@sonofbruce)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/include-category-children/#post-7429547)
 * Great tips. Thanks!

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

The topic ‘Include category children?’ is closed to new replies.

 * ![](https://ps.w.org/better-random-redirect/assets/icon-256x256.png?rev=1039316)
 * [Better Random Redirect](https://wordpress.org/plugins/better-random-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-random-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-random-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/better-random-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-random-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-random-redirect/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sonofbruce](https://wordpress.org/support/users/sonofbruce/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/include-category-children/#post-7429547)
 * Status: resolved