Przeglądaj źródła

:recycle: fixing permalinks for custom post types

tags/0.9.0
J 4 lat temu
rodzic
commit
fd0c5dc50d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      plugins/cia-post-types/cia-post-types.php

+ 1
- 1
plugins/cia-post-types/cia-post-types.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz