Custom Post Type Archives by Date with Custom Permalink

Here’s the solution:

  1. Install Custom Post Type Archives plugin
  2. Go to Settings->Post Type Archives
    1. Remove the url base option (leave it blank)
    2. Change the template pattern to archive-{POST_TYPE}.php
    3. Tick your custom post type and click save
  3. Rewrite/save your custom permalink structure

Now your links press-release/%year% and press-release/%year%/%month% should work.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)