Redirect Main Site to Subsite in Multisite WordPress

I have multi-site wordpress, I want to redirect the main site to one of the sub-site but redirection in .htacecss gives error. Is there any way to redirect a main site to its sub-site. That looks not possible but I am not a wordpress expert so just verifying. The redirect should be like redirect 301 Or if there is any other way to do that? Source:

customize continue reading

This is the code of continue reading in function.php <?php the_content( __( ‘Continue reading <span class= »meta-nav »>&rarr;</span>’, ‘twentyten’ ) ); ?> It has a class which named meta-nav I tried to find the class and change it but I couldn’t find that. Where is that? Thanks in advance Source:

The Web Behind John Allsopp joins Eric Meyer and Jen Simmons for the first episode in The Web Behind series. The idea is to take a look back at where the web came from and the people who created it. I think this is a really great idea for thinking forward. It’s a strange way to look at it, but if we don’t document the history there is no way we can learn from our mistakes. History is as important as the future. Get behind The Web Behind. It’s good for the…

Web Design Weekly #61

Headlines How the web should work The web is built by many different companies and individuals, giving consumers of the platform a unique chance to become contributors to its evolution. Rather than griping about how broken something on the web is, remember that you can play a part in fixing it! ( What’s new in the iPhone 5 and iOS 6 for web developers ( Getting HTML5 to Recommendation in 2014 ( Live Web Audio Input Enabled ( Articles Web Design is 95% Typography 95% of the information on the…

Add a Post Thumbnail to an RSS Feed with custom size

I have two different blogs on the same domain and my goal is to get the 3 latest posts from blog1 to show on the home page of blog2. Everything goes well following these instructions: The problem comes when I want to style the image, I need them to have all the same size/proportion using the custom sizes in wordpress. To achieve this I use the following code on functions.php in blog1 but I keep getting the huge image, not the small one: if ( function_exists( ‘add_image_size’ ) )…

Backstage: Basecamp for mobile

Jason Zimdars: Today we’re announcing mobile web because it’s the right thing to do. Devices and platforms will come and go, but the web browser is here to stay. Does this mean there will never be native apps? Of course not, this isn’t our final word on mobile. Once again, 37 Signals continue to deliver the goods. Source: web design weekly

Web Design Weekly #60

Headlines Testing Websites in Game Console Browsers It’s time to care about making our sites accessible to everyone, then we have to start looking beyond desktop and mobile. It’s time we take game console browsers seriously. ( Yeoman finally released! Yeoman is a robust and opinionated client-side stack, comprised of tools and frameworks that can help developers quickly build beautiful web applications. Yeoman takes care of providing everything needed to get started without any of the normal headaches associated with a manual setup. ( This Is Responsive – Tips, Resources…

save_post custom post type ? $_POST not working?

i have this code. <?php add_action(‘add_meta_boxes’, ‘ct_meta_add’); add_action(‘save_post’,’ct_meta_save’); add_action(‘save_post’,’ct_parent’); // add meta functions function ct_meta_add() { add_meta_box( ‘ct_chap’, //id ‘Thông tin chương’, //title ‘ct_meta_show’, //callback function ‘chap’, //post type ‘normal’ //priority ); } function get_blogspot_url($string) { preg_match_all(‘/<a href= »(.*?) »/’, $string, $matches); $string =  »; foreach($matches[1] as $val) { $string .= $val. »n »; } $string = str_replace(‘s1600’, ‘s0’, $string); return $string; } // save meta functions function ct_meta_save() { global $post; /* Save meta */ if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) return; if ( !wp_verify_nonce( $_POST[‘ct_nonce’], plugin_basename( __FILE__ ) ) )…

Exclude post ID from wp_query

How can I exclude one specific post from a WP_Query query? (For example, show all posts apart from a post with the ID 278) I’ve tried the post__not_in argument but it just removes all posts.. Any help would be great. Here is my current query <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(array( ‘post_type’ => ‘case-study’, ‘paged’ => $paged, )); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> Thanks Source: