Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form class="container-posts-settings">
- <!-- Section 1-->
- <div id="section-1">
- <div class="checkbox-post">
- <h3><?php _e("Section 1", 'menu-test' ); ?></h3>
- <p><?php _e("Categories:", 'menu-test' ); ?></p>
- <?php
- $cat_args=array(
- 'orderby' => 'name',
- 'order' => 'ASC'
- );
- $categories = get_categories($cat_args);
- foreach ($categories as $category) { ?>
- <input type="checkbox" value="<?php $category->cat_name?>" name="section-1[]"><?php echo $category->cat_name?><br>
- <?php } ?>
- </div>
- <div class="image-post">
- <img src="<?php echo get_template_directory_uri() ?>/images/section-1.png">
- </div>
- </div>
- <?php submit_button(); ?>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement