Support » Plugin: WooCommerce » Not working in class-wc-post-types.php “hierarchical’ => true, “

  • caroline


    After latest update to 4.2.1. this line “hierarchical’ => true, // Hierarchical causes memory issues – WP loads all records!” in the file “class-wc-post-types.php” does not work any longer.

    Any idea how to solve it? The parent products of my site works and are viewable, but visitors cannot view the child products. They are only visible if I change it back to “false”. But I don’t want this because of the permalink structure and my catalogue products are supposed to be in a parent/child structure.

    • This topic was modified 2 years ago by caroline.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n


    Hi there,

    I’ve just had a closer look at the code in Github although I’m not quite sure which line you’re referring to –

    Would you mind sharing a bit more on detail on what exactly you’d like to do and which line of code is implicated here?


    Thread Starter caroline


    Yes thanks for quick answer @riaanknoetze

    It is find in includes/class-wc-post-types.php (/wp-content/plugins/woocommerce/includes/class-wc-post-types.php)

    and it is the line 343 (from the latest update).
    the line says 'hierarchical' => false, // Hierarchical causes memory issues - WP loads all records!

    After every Woocommerce-update, I change this to TRUE so I can create child-products to parent-products. I realize that this isn’t durable in a long term and I should probably buy this plugin instead

    Because all of my parent products are “grouped products”, and the child-products are created as “simple products” and attached to the parent by using page attributes. Yes I also add support for “page-attributes” after every woo-update to the line 285

    (With this plugin mentioned I can set parent products as “Variable product” and add child products as attributes. )

    But if there is another solution I’m very happy for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working in class-wc-post-types.php “hierarchical’ => true, “’ is closed to new replies.