have_posts() ) : $acadp_query->the_post(); $post_meta = get_post_meta( $post->ID ); ?>
>

post_author ).'">'.get_the_author().''; } echo '

'.implode( ' '.__( "by", 'advanced-classifieds-and-directory-pro' ).' ', $info ).'

'; if( $instance['show_description'] ) { if( ! empty( $post->post_content ) && ! empty( $this->listings_settings['excerpt_length'] ) ) { echo '

'.wp_trim_words( get_the_content(), $this->listings_settings['excerpt_length'], '...' ).'

'; } } $info = array(); if( $instance['show_category'] && $categories = wp_get_object_terms( $post->ID, 'acadp_categories' ) ) { $category_links = array(); foreach ( $categories as $category ) { $category_links[] = sprintf( '%s', acadp_get_category_page_link( $category ), $category->name ); } $info[] = sprintf( ' %s', implode( ', ', $category_links ) ); } if( $instance['has_location'] && $instance['show_location'] && $location = wp_get_object_terms( $post->ID, 'acadp_locations' ) ) { $info[] = ' '.$location[0]->name.''; } if( $instance['show_views'] && ! empty( $post_meta['views'][0] ) ) { $info[] = sprintf( __( "%d views", 'advanced-classifieds-and-directory-pro' ), $post_meta['views'][0] ); } echo '

'.implode( ' / ', $info ).'

'; if( $instance['has_price'] && $instance['show_price'] && isset( $post_meta['price'] ) && $post_meta['price'][0] > 0 ) { $price = acadp_format_amount( $post_meta['price'][0] ); echo '

'.acadp_currency_filter( $price ).'

'; } ?>