If is_post_type_archive is not working on your WordPress…

...the trouble could be that you have not reseted the loop on the page.

This is a quick one. For instance, you want to load javascript only on the archive page of the post type “Works”. Here’s what you would do.


But you can’t get it work. The fix may be that the custom loop needs reseting. Add this after you close the loop.



Club-Mate, the beverage → club-mate.fi