data->ID; $active = 'list'; if ( ! empty( $_GET['view_type'] ) && 'grid' === $_GET['view_type'] ) { $list = ''; $grid = 'active'; $active = 'grid'; } ?>
ID ) ) { $favourites = get_the_author_meta( 'stm_user_favourites', $user->ID ); if ( ! empty( $favourites ) ) { $fav_type = apply_filters( 'stm_listings_multi_type', array( 'listings' ) ); if ( isset( $_GET['listing_type'] ) && ! empty( $_GET['listing_type'] ) ) {//phpcs:ignore $fav_type = $_GET['listing_type'];//phpcs:ignore } $args = array( 'post_type' => $fav_type, 'post_status' => 'any', 'posts_per_page' => - 1, 'post__in' => array_unique( explode( ',', $favourites ) ), ); $fav = new WP_Query( $args ); $exist_adds = array(); if ( $fav->have_posts() ) : ?>