Now you can run multiple blogs from one installation of WordPress. This new feature is called Network or Multisite option in WordPress. All you have to do is open your wp-config.php file located in your WordPress root folder. Then add the following line anywhere in the file:
define('WP_ALLOW_MULTISITE', true);
Find more detail on ” How to enable Multi-Site feature in WordPress.” After doing this, you are able to access the network page from Tools » Network. By default, you are allowed to run other blogs as a subdomain. You can use other domains for blogs by using a Domain Mapping plugin (Detail: How to do Domain Mapping in WordPress Multisite Network).
After converting your WordPress single installation into Multisite Network, you can do some cool things with it. I will see how to get posts from all blogs in the network.
What if you want to get some recent posts from the last updated blogs, not just one? Then get_last_updated() is the function that will save your life!
See a simple example that shows the last post from the last updated blogs:
$blogs = get_last_updated(); echo ' <h1>Last posts in network</h1> '; foreach ($blogs AS $blog) { echo " <h2>".$blog["domain"].$blog["path"]."</h2> "; switch_to_blog($blog["blog_id"]); $lastposts = get_posts('numberposts=1'); foreach($lastposts as $post) : setup_postdata($post); the_title(); endforeach; restore_current_blog(); }
Reference:
You can read more about WordPress Multisite Network:
- Best BuddyPress Themes for Social Networking
- How to manage plugins in WordPress Multisite Network
- WPMU Functions/get last updated
- http://codex.wordpress.org/Category:WPMU_Functions
- http://codex.wordpress.org/Function_Reference#Multisite_functions
You can use these WordPress themes for your Multi-Site Network because they support BuddyPress and BBPress.
ReviewIt – Community WordPress Theme
ReviewIt provides you with a powerful review and community theme that is also 100% BuddyPress compatible!
Key Features
- 2 Unique Skins – Dark and Light
- Custom Post Types – Reviews and Slides
- Powerful Review System – Utilizes GD Star Rating WordPress plugin (requires PHP 5 )
- Easily Change Tags – Switch the site from movies to games, apps or whatever you want
- Multiple Review Displays – Display reviews in lists by score, date, based on similarity to other reviews, etc.
- Total BuddyPress Support – This theme supports BuddyPress but works just fine without it
DynamiX – Premium WordPress Theme
Theme features:
- Dual Skin Mode
– Inner (Main body content) & Outer (Header / Footer area) Skin can be selected
– Select Skins for the entire website and per page
– Select from 20 Outer Skins and 2 Inner Skins - Non-Post Gallery Slide Manager (Manage all your Gallery Images/Videos in one area)
- BuddyPress Theme (BBPress Support)
TheAllure – Elegant Corporate and Portfolio Theme
TheAllure is a professional and flexible WordPress theme packed with amazing functionality and a very impressive Design. The Theme has Unlimited color choices. It is packed with lots of shortcodes and a powerful admin panel (PowerPanel) that lets you control every aspect of your website.
The Allure theme is very easy to set up, no matter if you are a WordPress beginner or a WordPress pro.
It is also compatible with WordPress MU (Multisite/wp_mu). It is WPML Translation ready and for your convenience, already includes 19 languages for the front end.
Key Features
- Advanced Admin Panel packed with Options with over 20 sections to help you control every aspect of your website (SelectedTheme’s PowerPanel)
- Unlimited Colors
- WPML and Translation Ready
- 19 Languages Available
- Cufon Font Replacement with over 25 fonts
- Custom Post Types: Portfolio Items, Slider Items
- Supports Custom Menus
- 3 Sliders: Nivo Slider, Thumbnail Slider, Full Content Slider
- Fully Flexible Homepage Layout
- 50+ shortcodes
- WordPress Multisite (WordPress_MU) Support
Dont work with post_type? ‘post_type=property&numberposts=1’
Yeah all of these themes are very useful in wordpress I also like this additional feature and thanks for sharing this information with us.
It works fine!! Lovely thanks!