Is there any performance difference between the way wordpress handle pages and posts when i'm querying for them ?
In the same way, is there any performance difference between hierarchical custom post types (that are behaving like pages) and non hierarchical custom post types (that are behaving like posts) when i'm querying for them ?
The context of this question is : as i'm building a multilingual website and as custom taxonomies slug aren't translatable (in a multilingual context), i was about to simply use native pages (whose slug are translatable) in order to build a parent-page/child-page relationship instead of using custom taxonomies.
Is there any performance difference between the way wordpress handle pages and posts when i'm querying for them ?
In the same way, is there any performance difference between hierarchical custom post types (that are behaving like pages) and non hierarchical custom post types (that are behaving like posts) when i'm querying for them ?
The context of this question is : as i'm building a multilingual website and as custom taxonomies slug aren't translatable (in a multilingual context), i was about to simply use native pages (whose slug are translatable) in order to build a parent-page/child-page relationship instead of using custom taxonomies.
Share Improve this question edited Nov 21, 2019 at 23:24 PhpDoe asked Nov 21, 2019 at 21:14 PhpDoePhpDoe 2992 silver badges11 bronze badges1 Answer
Reset to default 0Pages and posts are identical in performance at first, as they are loaded from the same table: wp_posts
. However if the theme is including in the render for the page widgets or meta or taxonomies, they could vary greatly on performance, but a priori can't be affirmed one or other is more performant.
It is really a matter of the render and assets that your theme is including. For example a post could be very fast to load and other post in the same could load tons of resources. Same thing for pages. They are basically the same by themselves.