Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <form class="container-posts-settings">
  2. <!-- Section 1-->
  3. <div id="section-1">
  4. <div class="checkbox-post">
  5. <h3><?php _e("Section 1", 'menu-test' ); ?></h3>
  6. <p><?php _e("Categories:", 'menu-test' ); ?></p>
  7. <?php
  8. $cat_args=array(
  9. 'orderby' => 'name',
  10. 'order' => 'ASC'
  11. );
  12. $categories = get_categories($cat_args);
  13. foreach ($categories as $category) { ?>
  14. <input type="checkbox" value="<?php $category->cat_name?>" name="section-1[]"><?php echo $category->cat_name?><br>
  15. <?php } ?>
  16. </div>
  17. <div class="image-post">
  18. <img src="<?php echo get_template_directory_uri() ?>/images/section-1.png">
  19. </div>
  20. </div>
  21. <?php submit_button(); ?>
  22. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement