SHARE
TWEET

Untitled

a guest Jun 17th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <label for="<?php echo $this->get_field_id( 'link' ); ?>"><?php _e( 'دسته بندی' ); ?></label>      
  2.             <select id="<?php echo $this->get_field_id('link'); ?>" name="<?php echo $this->get_field_name('link'); ?>" class="widefat" style="width:100%;">
  3.             <?php foreach(get_terms('category','parent=0&hide_empty=false') as $term) { ?>
  4.             <option <?php selected( $instance['link'], $term->term_id ); ?> value="<?php echo $term->term_id; ?>"><?php echo $term->name; ?></option>
  5.             <?php } ?>      
  6.         </select>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top