Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <section id="<?=esc_html(strtolower(get_the_title()))?>" class='page'>
- <?php
- $businessPackages = get_posts(array(
- 'post_type' => 'service_packages',
- 'posts_per_page' => '-1',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'service_category',
- 'field' => 'slug',
- 'terms' => 'itsupport',
- )),
- 'meta_query' => array(
- array(
- 'key' => 'service_type',
- 'value' => 'business',
- 'compare' => '='
- )),
- ));
- ?>
- <div class='cursor'></div>
- <?php get_sidebar();?>
- <?php
- $tags = get_tags(array(
- 'hide_empty' => false
- ));
- ?>
- <style>
- img{
- height: 100px;
- paddding: 16px;
- }
- </style>
- <table>
- <tr class='package__heading'>
- <th>Tags</th>
- <?php foreach($businessPackages as $package): ?>
- <? error_log(var_export($package, true)); ?>
- <th><?=get_the_post_thumbnail($package)?> </th>
- <?php endforeach; ?>
- </tr>
- <?php foreach ($tags as $tag) : ?>
- <tr style='text-align: center;'>
- <td><?=$tag->name?></td>
- <td>✓</td>
- <td>✓</td>
- <td>✓</td>
- <td>✓</td>
- <td>✓</td>
- </tr>
- <?php endforeach; ?>
- </table>
- <table>
- <?php foreach($businessPackages as $package): ?>
- <tr>
- <th><?=get_the_post_thumbnail($package)?> </th>
- <?php foreach( get_field('package_features', $package->ID) as $help ) : ?>
- <td><?php echo $help->name; ?></td>
- <?php endforeach;?>
- </tr>
- <?php endforeach; ?>
- </table>
- </section>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement