How to Redirect Buddypress Directories To Login Page For Non Logged in Users

Try this: /** * Redirect Buddypress Directories To Login Page For Non Logged in Users. */ function yzc_redirect_bp_directories_to_login_page() { if (is_main_site()) { if( !is_user_logged_in() && (is_page( ‘members’ )|| is_page( ‘groups’ ) || bp_is_group() || bp_is_user() ) ) { // Get Redirection Url if ( function_exists( ‘youzify_get_login_page_url’ )) { $redirect_url = youzify_get_login_page_url(); } else { $redirect_url=wp_login_url( … Read more

User filter posts by year

Here is a solution I came up with. There are several ways to make this work. Please feel free to reply with any suggestions. Create a shortcode to generate the select drop down menu in your theme/functions.php file. The drop down menu form element has javascript to redirect the user to /?Year=value for whatever year … Read more