質問編集履歴

2

追記しました。

2020/02/21 01:37

投稿

eguban
eguban

スコア4

test CHANGED
File without changes
test CHANGED
@@ -123,3 +123,35 @@
123
123
  初心者のため、どこが間違っているのか調べてもわからず、
124
124
 
125
125
  ご教示してくださる方がいらっしゃいましたら、どうかお力添えのほどお願い致します。
126
+
127
+
128
+
129
+ ### 追記
130
+
131
+ (1)使用しているテーマ、WPのバージョンの提示
132
+
133
+ WordPress 5.3.2
134
+
135
+ テーマはオリジナルテーマです。
136
+
137
+ (2)タクソノミーの設定内容提示
138
+
139
+ 「管理画面でカラムを表示」のみFalse、その他はTrueです。
140
+
141
+ (3)駄目元で「パーマリンク設定」の更新(何も設定を変えず「変更を保存」する)
142
+
143
+ 試してみましたが、解決しませんでした。
144
+
145
+ (4)プラグインの影響の有無を確認
146
+
147
+ Custom Post Type UI、Classic Editor、Intuitive Custom Post Order
148
+
149
+ WP Multibyte Patch、
150
+
151
+ カスタムフィールドテンプレート、NextGEN Gallery
152
+
153
+ 以上を使用しています。無効化してみても変化はありませんでした。
154
+
155
+ (5)functions.phpの影響の有無を確認
156
+
157
+ 現状、アイキャッチの設定のみ記述してあります。

1

コード詳細を追記しました。

2020/02/21 01:37

投稿

eguban
eguban

スコア4

test CHANGED
File without changes
test CHANGED
@@ -54,11 +54,57 @@
54
54
 
55
55
  ```php
56
56
 
57
+ <article>
58
+
57
59
  <?php if( have_posts() ): while ( have_posts() ) : the_post(); ?>
58
60
 
61
+
62
+
63
+ <section>
64
+
65
+ <h1><?php the_title(); ?></h1> //タイトル表示
66
+
67
+ <div class="website">
68
+
69
+ <?php if (post_custom('website')): ?> //カスタムフィールドのURL表示
70
+
71
+ <a href="<?php echo esc_html(post_custom('website')); ?>" target="_blank">site</a>
72
+
73
+ <?php endif; ?>
74
+
59
- //略
75
+ </div>
76
+
77
+ <div class="category">
78
+
79
+ <?php the_terms(get_the_ID(),'genre'); ?> //該当タームを表示
80
+
81
+ </div>
82
+
83
+
84
+
85
+ <div class="custom_content">
86
+
87
+ <?php the_post_thumbnail('eycatch'); ?> //指定のアイキャッチを表示
88
+
89
+ <?php the_content(); ?> //投稿内容を表示(抜粋でなく全文を表示)
90
+
91
+ </div>
92
+
93
+ <div class="info">
94
+
95
+ <?php get_template_part('info'); ?> //カスタムフィールドのinfoを表示
96
+
97
+ </div>
98
+
99
+
100
+
101
+
102
+
103
+ </section>
60
104
 
61
105
  <?php endwhile; endif; ?>
106
+
107
+ </article>
62
108
 
63
109
  ```
64
110