質問編集履歴

1

追加で発生した疑問点

2017/03/29 02:48

投稿

Lyo
Lyo

スコア12

test CHANGED
File without changes
test CHANGED
@@ -57,3 +57,65 @@
57
57
 
58
58
 
59
59
  ご享受お願いいたします。
60
+
61
+
62
+
63
+ 追記
64
+
65
+
66
+
67
+ ```UTF-8
68
+
69
+ <?php get_header(2); ?>
70
+
71
+ <section id="post_area" class="container">
72
+
73
+ <?php query_posts('&post_type=home&paged='.$paged); ?>
74
+
75
+ <?php if ( have_posts() ) : ?>
76
+
77
+ <?php while ( have_posts() ) : the_post(); ?>
78
+
79
+ <div class="custom_img"><?
80
+
81
+ )
82
+
83
+ $img = get_field('img');
84
+
85
+ $imgurl = wp_get_attachment_image_src($img, 'full');
86
+
87
+ if($imgurl){ ?><img src="<? echo $imgurl[0]; ?>" alt=""></p>
88
+
89
+ <? } ?></div>
90
+
91
+ <div class="custom_table">
92
+
93
+ <div class="custom_title_area"><?php the_field('choice'); ?><h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2></div>
94
+
95
+ <?php the_content(); ?>
96
+
97
+ <?php the_field('place'); ?>
98
+
99
+
100
+
101
+ <?php endwhile; ?>
102
+
103
+ <?php endif; ?>
104
+
105
+ </section>
106
+
107
+ <div class="clear"></div>
108
+
109
+ </div>
110
+
111
+ <?php get_footer(); ?>
112
+
113
+ ```
114
+
115
+
116
+
117
+ 現在ここまできたのですが、間に画像や、タイトルタグを挟んでいるのですが、書き方はこちらであっているのでしょうか?
118
+
119
+
120
+
121
+ とりぜず出力はされているのですが、おかしいところがあれば指摘お願いいたします。