回答編集履歴

1

追記

2020/02/15 09:51

投稿

CHERRY
CHERRY

スコア25234

test CHANGED
@@ -7,3 +7,59 @@
7
7
 
8
8
 
9
9
  表示している固定ページで、入力されているでしょうか?
10
+
11
+
12
+
13
+ ----
14
+
15
+ 追記
16
+
17
+
18
+
19
+ get_posts で、対象の PostType のデータを取得してから表示なので、こんな感じでしょうか。
20
+
21
+
22
+
23
+ ```
24
+
25
+ $args = array( 'post_type' => 'myoptions' );
26
+
27
+ $myposts = get_posts( $args );
28
+
29
+
30
+
31
+ foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
32
+
33
+ <?php if(have_rows('options_list')) : ?>
34
+
35
+ <table class="table02">
36
+
37
+ <tbody>
38
+
39
+ <?php while(have_rows('options_list')): the_row(); ?>
40
+
41
+ <tr>
42
+
43
+ <th>
44
+
45
+ <?php the_sub_field('options_list_name'); ?>
46
+
47
+ </th>
48
+
49
+ <td>
50
+
51
+ <?php the_sub_field('options_list_price'); ?>
52
+
53
+ </td>
54
+
55
+ </tr>
56
+
57
+ <?php endwhile; ?>
58
+
59
+ </tbody>
60
+
61
+ </table>
62
+
63
+ <?php endif; ?>
64
+
65
+ ```