teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コードおよび設定などの追加

2019/02/18 10:48

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -14,4 +14,59 @@
14
14
  ### バージョンや使用プラグイン
15
15
  - Wordpress 5.0.3
16
16
  - Advanced Custom Fields PRO 5.7.12
17
- - Custom Post Type UI 1.6.1
17
+ - Custom Post Type UI 1.6.1
18
+
19
+ ---
20
+ ### パーマリンク構造
21
+ https://www.hoge.co.jp/fugefuge//%postname%/
22
+ ### カスタムタクソノミーの登録内容(register_taxonomy で設定した内容)
23
+ CPT UIの設定を(ラベルやディスクリプション以外)登録済画面からそのままコピペしました
24
+ ```setting
25
+ name: name
26
+ label: ラベル
27
+ singular_label: ラベル
28
+ description:ディスクリプション
29
+ public: true
30
+ publicly_queryable: true
31
+ hierarchical: true
32
+ show_ui: true
33
+ show_in_menu: true
34
+ show_in_nav_menus: true
35
+ query_var: true
36
+ query_var_slug: ""
37
+ rewrite: true
38
+ rewrite_slug: ""
39
+ rewrite_withfront: true
40
+ rewrite_hierarchical: false
41
+ show_admin_column: true
42
+ show_in_rest: true
43
+ show_in_quick_edit: ""
44
+ rest_base: ""
45
+ rest_controller_class: ""
46
+ meta_box_cb: ""
47
+ ```
48
+ ### taxonomy.php の中身
49
+ ```php
50
+ <?php get_header(); ?>
51
+ <?php get_footer(); ?>
52
+ ```
53
+ ### .htaccess の内容
54
+ ```htaccess
55
+ #/.htaccess mbstring.e off
56
+ php_flag mbstring.encoding_translation off
57
+ php_value default_charset "UTF-8"
58
+
59
+ php_value upload_max_filesize xxM
60
+ php_value post_max_size xxM
61
+
62
+ # BEGIN WordPress
63
+ <IfModule mod_rewrite.c>
64
+ RewriteEngine On
65
+ RewriteBase /fugefuge/
66
+ RewriteRule ^index.php$ - [L]
67
+ RewriteCond %{REQUEST_FILENAME} !-f
68
+ RewriteCond %{REQUEST_FILENAME} !-d
69
+ RewriteRule . /fugefuge/index.php [L]
70
+ </IfModule>
71
+ # END WordPress
72
+ ```