CPT hierarchy – is there a limit on the number of articles?
-
For my plugin / CPT I would like to allow the user to order the articles like they can for pages. There is an option when registering a post type to indicate that it should support ‘hierarchical’ ordering of articles, like Pages do. However, there is a warning on the register_post_type codex page in relation to setting hierarchical to true:
Be careful, when choosing it for your custom post type – if you are planning to have many entries (say – over 100), you will run into memory issue. With this parameter set to true WordPress will fetch all entries of that particular post type, together with all meta data, on each administration page load for your post type.
https://codex.wordpress.org/Function_Reference/register_post_type#hierarchical
I can easily imagine users of my plugin having more than 100 articles. Is this still valid? I see in Trac this ticket as fixed:
Need Better Page Hierarchy Display Algorithm:
https://core.trac.wordpress.org/ticket/15459Thanks!
- The topic ‘CPT hierarchy – is there a limit on the number of articles?’ is closed to new replies.