質問編集履歴

1

詳細について

2018/10/08 01:38

投稿

marimari830
marimari830

スコア12

test CHANGED
File without changes
test CHANGED
@@ -21,3 +21,173 @@
21
21
  なんとか、上記の問題をクリアしたいです。
22
22
 
23
23
  どうぞよろしくお願いいたします。
24
+
25
+
26
+
27
+ -----------------------------------------------------------
28
+
29
+ 以下、single-works.php のコードとなります。
30
+
31
+ ----------------------------------------------------------------
32
+
33
+ <?php
34
+
35
+ /*
36
+
37
+ Template Name: single-works
38
+
39
+ */
40
+
41
+ get_header(); ?>
42
+
43
+
44
+
45
+ <?php get_template_part( 'modules/page-header' ); ?>
46
+
47
+ <div class="sub-page-contents">
48
+
49
+ <div class="container">
50
+
51
+ <div class="row">
52
+
53
+ <div class="col-md-9">
54
+
55
+ <main id="main" role="main">
56
+
57
+
58
+
59
+ <?php while ( have_posts() ) : the_post(); ?>
60
+
61
+
62
+
63
+ <div class="works-thumbnail"><?php the_post_thumbnail(); ?></div>
64
+
65
+ <div class="works-info">
66
+
67
+ <dl>
68
+
69
+ <dt>画像</dt>
70
+
71
+ <dd><?php echo esc_html( post_custom( 'img001' ) ); ?></dd>
72
+
73
+ </dl>
74
+
75
+ <dl>
76
+
77
+ <dt>説明</dt>
78
+
79
+ <dd><?php echo esc_html( post_custom( 'text' ) ); ?></dd>
80
+
81
+ </dl>
82
+
83
+ <!-- <dl>
84
+
85
+ <dt>ひとこと</dt>
86
+
87
+ <dd><?php echo nl2br( esc_html( post_custom( 'message' ) ) ); ?></dd>
88
+
89
+ </dl> -->
90
+
91
+ </div>
92
+
93
+ <!-- <div class="works-content"><?php the_content(); ?></div> -->
94
+
95
+
96
+
97
+ <?php _s_content_nav( 'nav-below' ); ?>
98
+
99
+ <?php endwhile; ?>
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- end #main --></main>
108
+
109
+
110
+
111
+ <!-- end .col-md-9 --></div>
112
+
113
+ <div class="col-md-3">
114
+
115
+ <?php get_sidebar(); ?>
116
+
117
+ <!-- end .col-md-3 --></div>
118
+
119
+ <!-- end .row --></div>
120
+
121
+ <!-- end .container --></div>
122
+
123
+ <!-- end .sub-page-contents --></div>
124
+
125
+ <?php get_footer(); ?>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ --------------------------------------------------------------
138
+
139
+
140
+
141
+ Habakiri 親テーマ single.php
142
+
143
+
144
+
145
+ <?php
146
+
147
+ /**
148
+
149
+ * Version : 1.1.0
150
+
151
+ * Author : inc2734
152
+
153
+ * Author URI : http://2inc.org
154
+
155
+ * Created : April 17, 2015
156
+
157
+ * Modified : August 30, 2015
158
+
159
+ * License : GPLv2 or later
160
+
161
+ * License URI: license.txt
162
+
163
+ */
164
+
165
+ ?>
166
+
167
+ <?php get_header(); ?>
168
+
169
+
170
+
171
+
172
+
173
+ <?php get_template_part( 'modules/page-header' ); ?>
174
+
175
+ <div class="sub-page-contents">
176
+
177
+ <?php get_template_part( 'blog_templates/single/' . Habakiri::get( 'blog_template' ) ); ?>
178
+
179
+ <!-- end .sub-page-contents --></div>
180
+
181
+
182
+
183
+ <?php get_footer(); ?>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+ ### 試したこと
192
+
193
+ 2日間程、色々と試行錯誤をしましたがもうお手上げです。