Title: filter control
Last modified: August 31, 2016

---

# filter control

 *  [kief](https://wordpress.org/support/users/kief/)
 * (@kief)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/filter-control/)
 * hi,
 * I have a site that has a menu , the theme is the option for a filter menu to 
   which I can add the menus through the id .Ddefault menu has the filter to “all”
   the products listed . I would take them out and keep are the id that I entered.
   I am attaching the code
 * $list_id = explode( ‘,’, $post_id );
    ?> <div class=”wrapper-filter-controls”
   > <div class=”filter-controls”> <div class=”filter ” data-filter=”all”>All</div
   ><?php for ( $j = 0; $j < count( $list_id ); $j ++ ) { $post_id_ct = $list_id[
   $j]; if ( get_post_type( $post_id_ct ) != ‘erm_menu’ ) { return; } $class_fillter_ct
   = ‘menu-item-‘ . $post_id_ct; $menu_post_ct = get_post( $post_id_ct ); echo ‘
   <div class=”filter” data-filter=”.’ . $class_fillter_ct . ‘”>’ . $menu_post_ct-
   >post_title . ‘</div>’; } ?> </div>

The topic ‘filter control’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [kief](https://wordpress.org/support/users/kief/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/filter-control/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
