post_types_archives :( what for ?
Hi to every one,
just a question why changing wp_query by post type from is_home to is_archive ? especially when there’s no term set in this “archive” query ?
for me personnaly it looks like mixing the destiction of custom post type and a custom taxonomy ….. ;(
for those who get 404 on “index” pages for custom post type -> try to follow the logic in your permalinks like this :
video/video-post/ a single
videos/ is the famous post type index page …
works perfectly on any wp installation ,just use is page(‘videos’) -> wp_reset_query() , + normal home query but with post_type set to needed…
then is_home() works perfectly on any “index” page of any custom or build_in post type
in 3.1 you’ll have to reinvent the weel to get that stuff working easily
- The topic ‘post_types_archives :( what for ?’ is closed to new replies.