Bläddra i källkod

:recycle: fixing permalinks for custom post types

tags/0.9.0
J 4 år sedan
förälder
incheckning
fd0c5dc50d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      plugins/cia-post-types/cia-post-types.php

+ 1
- 1
plugins/cia-post-types/cia-post-types.php Visa fil

@@ -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
         ];

Laddar…
Avbryt
Spara