Forum Replies Created

Viewing 4 replies - 31 through 34 (of 34 total)
  • Thread Starter xmmassage

    (@xmmassage)

    Here is my own change of your code. In my case i was needed to sort them by display name.

    public function get_all_staff( $args = null ) {
    $meta = array(
    ‘meta_query’ => array(
    array(
    ‘key’ => ATTMGR::PLUGIN_ID.’_ex_attr_staff’,
    ‘value’ => 1,
    ‘compare’ => ‘=’
    ),
    ),

    /**
    * My addon
    */

    ‘meta_key’ => ‘first_name’,
    ‘orderby’ => ‘display_name’,
    ‘order’ => ‘ASC’

    );
    $user_query = new WP_User_Query( $meta );
    $users = $user_query->results;
    $staff = array();
    if ( ! empty( $users ) ) {
    foreach ( $users as $u ) {
    if ( ! empty( $u->ID ) ) {
    $user = new ATTMGR_User( $u->ID );
    //if ( $user->is_staff() ) {
    $staff[] = $user;
    //}
    }
    }
    }
    return $staff;
    }

    Thread Starter xmmassage

    (@xmmassage)

    Thank you tnomi, but can you please schedule this feature as an option? For future versions.

    Thread Starter xmmassage

    (@xmmassage)

    Found the problem:

    This selector contains error

    ‘#attmgr_staff_scheduler input[name^=”attmgr_off”‘

    There is no ‘]’ symbol at the end. This cause error on mobile devices.

    Thread Starter xmmassage

    (@xmmassage)

    It looks like your front.js throws some error.

    This bug can be repeated only on real device (emulators work fine).

    If I delete all the code inside fron.js then everything works fine even if plugin is activated and tiled galleries work fine.

    So, looks like there is some javascript error which stops further javascript and tiled galleries rendered in a wrong way.

    I’m not sure this is repeatable on IPhone 5.

Viewing 4 replies - 31 through 34 (of 34 total)