WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Parent Category Selection on Subcategory Selection (5 posts)

  1. Blutarsky
    Member
    Posted 3 years ago #

    In a previous message, I have been asking how to change an existing category to be a subcategory.

    Once done, posts belonging to a subcategory won't show that the same posts are also belonging to the parent category, although they will be included when listing posts from a parent category, when using the following URL structure:

    http://myblog/category/parentcategory

    I'm asking myself if there's a way to make WP automatically select parent categories when a post is assigned to subcategory

  2. Carsten Bach
    Member
    Posted 3 years ago #

    There is a "fast & dirty" plugin doing what you're looking for.
    http://wordpress.org/extend/plugins/parent-category-toggler/

    If anyone knows a way to do that via a frontend call to wp_insert_post too, I'll be happy to know.

  3. Blutarsky
    Member
    Posted 3 years ago #

    Does it support 3.1 ??

  4. Carsten Bach
    Member
    Posted 3 years ago #

    Don't know. I've tested it on a 3.0.1 and this works fine. The plugin description says it's compatible up to 2.7.

  5. alxvallejo
    Member
    Posted 2 years ago #

    It works on 3.2

Topic Closed

This topic has been closed to new replies.

About this Topic