Changes between Version 2 and Version 3 of Ticket #16264, comment 19
- Timestamp:
- 12/13/2015 09:31:58 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16264, comment 19
v2 v3 18 18 For example, someone writes a `WP_Query` that hardcodes the page ID for a pricing page into a check for whether to modify a query based in `'pre_get_posts'`. With this function they could instead hardcode the page template filename and modify the query when that matched. 19 19 20 Tying to page templates instead of slugs and post IDS is a more for robust solution. And I would expect the reason most people who tie to slugs and post IDs do so because it does not occur to them that there is a nother way. If this function where built-in and and blogs posts about it existed, it might occur to them to do it more robustly.20 Tying to page templates instead of slugs and post IDS is a more for robust solution. And I would expect the reason most people who tie to slugs and post IDs do so because it does not occur to them that there is a better way. If this function where built-in and and blogs posts about it existed, it might occur to them to do it more robustly. 21 21