Procházet zdrojové kódy

:recycle: fixing permalinks for custom post types

tags/0.9.0
J před 4 roky
rodič
revize
fd0c5dc50d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      plugins/cia-post-types/cia-post-types.php

+ 1
- 1
plugins/cia-post-types/cia-post-types.php Zobrazit soubor

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

Načítá se…
Zrušit
Uložit