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

質問編集履歴

1

詳細について

2018/10/08 01:38

投稿

marimari830
marimari830

スコア12

title CHANGED
File without changes
body CHANGED
@@ -9,4 +9,89 @@
9
9
  と…こんな、状態です。
10
10
  ![イメージ説明](78e9d1432caff692aa3ccb216da88853.png)
11
11
  なんとか、上記の問題をクリアしたいです。
12
- どうぞよろしくお願いいたします。
12
+ どうぞよろしくお願いいたします。
13
+
14
+ -----------------------------------------------------------
15
+ 以下、single-works.php のコードとなります。
16
+ ----------------------------------------------------------------
17
+ <?php
18
+ /*
19
+ Template Name: single-works
20
+ */
21
+ get_header(); ?>
22
+
23
+ <?php get_template_part( 'modules/page-header' ); ?>
24
+ <div class="sub-page-contents">
25
+ <div class="container">
26
+ <div class="row">
27
+ <div class="col-md-9">
28
+ <main id="main" role="main">
29
+
30
+ <?php while ( have_posts() ) : the_post(); ?>
31
+
32
+ <div class="works-thumbnail"><?php the_post_thumbnail(); ?></div>
33
+ <div class="works-info">
34
+ <dl>
35
+ <dt>画像</dt>
36
+ <dd><?php echo esc_html( post_custom( 'img001' ) ); ?></dd>
37
+ </dl>
38
+ <dl>
39
+ <dt>説明</dt>
40
+ <dd><?php echo esc_html( post_custom( 'text' ) ); ?></dd>
41
+ </dl>
42
+ <!-- <dl>
43
+ <dt>ひとこと</dt>
44
+ <dd><?php echo nl2br( esc_html( post_custom( 'message' ) ) ); ?></dd>
45
+ </dl> -->
46
+ </div>
47
+ <!-- <div class="works-content"><?php the_content(); ?></div> -->
48
+
49
+ <?php _s_content_nav( 'nav-below' ); ?>
50
+ <?php endwhile; ?>
51
+
52
+
53
+
54
+ <!-- end #main --></main>
55
+
56
+ <!-- end .col-md-9 --></div>
57
+ <div class="col-md-3">
58
+ <?php get_sidebar(); ?>
59
+ <!-- end .col-md-3 --></div>
60
+ <!-- end .row --></div>
61
+ <!-- end .container --></div>
62
+ <!-- end .sub-page-contents --></div>
63
+ <?php get_footer(); ?>
64
+
65
+
66
+
67
+
68
+
69
+ --------------------------------------------------------------
70
+
71
+ Habakiri 親テーマ single.php
72
+
73
+ <?php
74
+ /**
75
+ * Version : 1.1.0
76
+ * Author : inc2734
77
+ * Author URI : http://2inc.org
78
+ * Created : April 17, 2015
79
+ * Modified : August 30, 2015
80
+ * License : GPLv2 or later
81
+ * License URI: license.txt
82
+ */
83
+ ?>
84
+ <?php get_header(); ?>
85
+
86
+
87
+ <?php get_template_part( 'modules/page-header' ); ?>
88
+ <div class="sub-page-contents">
89
+ <?php get_template_part( 'blog_templates/single/' . Habakiri::get( 'blog_template' ) ); ?>
90
+ <!-- end .sub-page-contents --></div>
91
+
92
+ <?php get_footer(); ?>
93
+
94
+
95
+
96
+ ### 試したこと
97
+ 2日間程、色々と試行錯誤をしましたがもうお手上げです。