Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
4
Newest
 Supporter
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Aug
24
awarded  Supporter
Aug
24
awarded  Scholar
Aug
24
accepted Custom Post Type Archives with 0 Posts Redirects as 404
Mar
10
comment Custom Post Type Archives with 0 Posts Redirects as 404
One method I'm trying is to use the template_redirect action to determine if the post_type matches the requested one and redirect to the archive-{post_type}.php template. Of course, this also means hooking anything else that may act upon the 404 (title, other content modifers, etc). I'm hoping there's a more logical way of fixing this as it seems like a bandaid more than anything.
Mar
9
awarded  Teacher
Mar
9
awarded  Student
Mar
9
answered How to verify this checkbox is checked?
Mar
9
asked Custom Post Type Archives with 0 Posts Redirects as 404