Different home page for logged off users

Can you use this to redirect the logged out users? <?php if ( !is_user_logged_in() { ?> <?php wp_redirect( ‘https://yourdomain.com.au/logoutpage’, 302 ); exit; ?> <?php } ?> or this solution? setting a specific home page for logged in users

Using Switch Statement to Change Image According to Last Digit of Topic ID

I would try something like this: function bg_image_topic_titlearea() { if ( ! function_exists( ‘bbp_get_topic_id’ ) ) { return false; } if ( ! $letztezifferimgs = bbp_get_topic_id() ) { return false; } $letztezifferimgs = substr( $letztezifferimgs, – 1 ); // switch … return true; } I would recommend checking to make sure the function call (bbp_get_topic_id();) … Read more

blog change and move to anther hosting for a multisite

If you open up your wp-config.php file for your multisite set-up there are some constants you can change… define(‘DOMAIN_CURRENT_SITE’, ‘example.com’); define(‘PATH_CURRENT_SITE’, “https://wordpress.stackexchange.com/”); define(‘SITE_ID_CURRENT_SITE’, 1); define(‘BLOG_ID_CURRENT_SITE’, 1); 1 in this case refers to the ID of the site that should be the default site. You can figure out the ID of each site by going to … Read more

WordPress Menu Exchange for Mobile Layout

There isn’t an is_mobile() function to my knowledge. WordPress uses a wp_is_mobile() which is probably what you’re looking for. So it should look like this: <?php if ( wp_is_mobile() ) { wp_nav_menu( array(‘menu’ => ‘mobile’ ) ); } else { wp_nav_menu( array(‘menu’ => ‘primary’ ) ); }; ?> EDIT After reviewing your question further it … Read more

What happens when you plug two sides of a cable to a single networking device?

Depends on the router/switch. If it’s “Managed” – Like decent Netgear, Cisco or HP Procurve, or has STP (Spanning Tree Protocol) or one of its variants enabled, there’s a few seconds of absolute insanity, then the switch realises that there’s a loop in the network topology, and blocks one of the ports. (I’ve only described … Read more