Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2.  
  3. require_once('../../../../wp-load.php');
  4.  
  5. if (isset($_POST['catid']))
  6. $catID = $_POST['catid'];
  7. else
  8. $catID = 0;
  9.  
  10.  
  11. $args = array(
  12. 'show_option_all' => '',
  13. 'show_option_none' => '',
  14. 'option_none_value' => '-1',
  15. 'orderby' => 'term',
  16. 'order' => 'ASC',
  17. 'show_count' => 0,
  18. 'hide_empty' => false,
  19. 'child_of' => $catID,
  20. 'exclude' => '',
  21. 'echo' => 1,
  22. 'selected' => $_POST['subcatid'],
  23. 'hierarchical' => 0,
  24. 'name' => 'city',
  25. 'id' => 'city',
  26. 'class' => 'search-select',
  27. 'depth' => 0,
  28. 'tab_index' => 0,
  29. 'taxonomy' => 'property-city',
  30. 'hide_if_empty' => false,
  31. 'value_field' => 'term_id',
  32. );
  33.  
  34. wp_dropdown_categories( $args );
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement