-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-group-select-metabox-practice.php
51 lines (34 loc) · 1.13 KB
/
page-group-select-metabox-practice.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Template Name:Group Select Metabox
*/
get_header();
?>
<div class="section" data-aos="fade-up">
<div class="container">
<div class="row section-heading justify-content-center mb-5">
<div class="col-md-8 text-center">
<?php
$group_meta = get_post_meta(get_the_ID(), 'group_select_meta', true);
$group_data = $group_meta['sections_group'];
foreach ($group_data as $gd) {
echo "<pre>";
print_r($group_data);
echo "</pre>";
echo get_the_title($gd['section-field']);
echo "<br/>";
echo $gd['text_section'];
}
?>
</div>
<div class="col-md-8 text-center">
<?php
$meta = get_post_meta( get_the_ID(), 'section_meta_options', true );
echo $meta_data = isset($meta['type']) ? $options['type'] : '';
?>
</div>
</div>
</div>
</div> <!-- .section -->
<?php
get_footer();