Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $current = $this->get_field_value( 'jflow_category' );
- echo '<label>Featured Category: </label>';
- echo '<select name="' . $this->get_field_name( 'jflow_category' ) . '" id="' . $this->get_field_id( 'jflow_category' ) . '">';
- $cats = get_categories( 'type=post&orderby=name&hide_empty=0' );
- foreach( $cats as $cat ) {
- echo '<option value="' . $cat->cat_ID . '"' . selected( $current, $cat->cat_ID ) . '>' . $cat->cat_name. '</option>';
- }
- echo '</select></p>';
- echo '<p><span class="description">Selected the featured category</span></p>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement