kbflymry
Forum Replies Created
-
Forum: Plugins
In reply to: [SearchIQ - The Search Solution] Display ‘post-type’ in search resultHello yes, it’s an intranet so I can’t provide you a login.
Can you explain or provide a tutorial on how to accomplish it with facets?
Forum: Plugins
In reply to: [SearchIQ - The Search Solution] Display ‘post-type’ in search resultHi, [email protected]. Thanks!
Forum: Plugins
In reply to: [The Events Calendar] Members Only CalendarHi @tdorn , I’m trying to redirect this page – https://mrjdev.wpengine.com/events/- (this is the Events Calendar landing page) – to https://mrjdev.wpengine.com/login/ if not logged in, but I still get the white screen of death when logged out users load https://mrjdev.wpengine.com/events/.
This is the code I’m using:
add_filter( 'tribe_events_pre_get_posts', 'redirect_from_events' ); function redirect_from_events( $query ) { if ( is_user_logged_in() ) return; if ( ! $query->is_main_query() || ! $query->get( 'eventDisplay' ) ) return; // Look for a page with a slug of "login". $target_page = get_posts( [ 'post_type' => 'page', 'name' => 'login' ] ); // Use the target page URL if found, else use the home page URL. if ( empty( $target_page ) ) { $url = get_home_url(); } else { $target_page = current( $target_page ); $url = get_permalink( $target_page->ID ); } // Redirect! wp_safe_redirect( $url ); exit; }
Forum: Plugins
In reply to: [The Events Calendar] Members Only CalendarHi James, the redirect method.
Thanks for your reply!
Forum: Plugins
In reply to: [Front End Users] Login form not redirecting to shortcode specifiedThis isn’t about restricted content, just that it doesn’t seem to register the user is logged in. The toggle still says login.
Can I add you as a user and you can check?Forum: Plugins
In reply to: [Front End Users] Login form not redirecting to shortcode specifiedHi there, we are still having some problems, and we are using the login-logout-toggle. Once they redirect to the short code and redirect to the desired page on that process, the cookies are lost and we do not get any further cookies, so it isn’t redirecting or showing cookies. Can you please provide help?
https://ucreconomicforecast.org/
https://ucreconomicforecast.org/index.php/login/
https://ucreconomicforecast.org/index.php/register/