I have a section in my website where i want to display just the private posts for logged in users, but the loop returns all posts (private and publish), is it possible to change this? I have the next code in my loop:
global $listingsearch, $listing_query, $wp_query;
$view = listingpress_get_listing_search_view();
$desktop_view = $view['d'];
And this
if ( $wp_query->have_posts() ) :
And this
while ( $wp_query->have_posts() ) :
$wp_query->the_post();