Browse Source

:recycle: fixing permalinks for custom post types

tags/0.9.0
J 4 years ago
parent
commit
fd0c5dc50d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      plugins/cia-post-types/cia-post-types.php

+ 1
- 1
plugins/cia-post-types/cia-post-types.php View File

56
             'show_in_rest'       => true,
56
             'show_in_rest'       => true,
57
             'publicly_queryable' => true, // Needed for slug
57
             'publicly_queryable' => true, // Needed for slug
58
             'rewrite'            => array( // Rewrite permalink stuff
58
             'rewrite'            => array( // Rewrite permalink stuff
59
-                'slug' => ucfirst($this->post_type),
59
+                'slug' => $this->post_type,
60
                 'with_front' => false
60
                 'with_front' => false
61
             ),
61
             ),
62
         ];
62
         ];

Loading…
Cancel
Save