Here's a gist of what the code in my FacetWP dev view looks like:
<?php
if ( have_posts() ) :
while ( have_posts() ): the_post();
global $current_user;
get_currentuserinfo();
if ( is_user_logged_in() ) {
echo 'Welcome, registered user!';
} else {
echo 'Welcome, visitor!';
}
endwhile;
endif;
?>
The FacetWP results load fine on page refresh, however, when I select a facet, no matter what, the results think I'm not logged in (unless I do a page refresh).
Any ideas on what I'm doing wrong or how I might fix this?
Thanks,
Toby