• 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.