Skip to main content
5 events
when toggle format what by license comment
Nov 22, 2017 at 14:55 comment added Welcher I think it's because the rewrite found cat before dog and when it didn't find a matching archive-cat.php, the templating system did what it is supposed to do an fell back to archive.php. Might be work reversing the order in the query just to see if that makes a difference
Nov 22, 2017 at 8:12 vote accept grazdev
Nov 21, 2017 at 14:30 comment added grazdev Thank you, yes, this works. But now I wonder, was the issue I was having an intended Wordpress behavior? In other words, is it "normal" that Wordpress doesn't pick up the right template when multiple custom post types are specified?
Nov 21, 2017 at 14:21 history edited Johansson CC BY-SA 3.0
You can not pass arguments to is_archive(). You should use is_post_type_archive() instead.
Nov 21, 2017 at 14:02 history answered Welcher CC BY-SA 3.0