title: How to add custom post type archive to menu
body: <p>I have been searching for weeks and I still haven't found a proper solution to this problem.</p>
  
  <p>I am writing a Wordpress Theme. I have a custom post type called Works. I would like to add my Works archive to my menu and have it as well as it's posts highlighted when I access them.</p>
  
  <p>I can access my archive and posts on the following links</p>
  
  <p>Works archive: <code>/works/</code></p>
  
  <p>Works single post: <code>/works/postname/</code></p>
  
  <p>My solution so fare have been to name my <code>archive-works.php</code> template file with a template name (Work archive). Then create an empty page using that template and adding the page to the menu. This highlights the archive in the menu but not the single posts.</p>
  
  <p>I can easily solve this with a custom link and some javascript but there must be a better and cleaner way.</p>