to a static page, but for all new users who sign up for a blog? I've set up on my wpmu-functions.php pre-custom pages that will be in the new user's profile. I want to assign a certain page to use as a home page instead of having the blog posts appear first. I've been trying to look on the forums but have not found or do not know what I am trying to find. Suggestions?
jonperry
Member
Posted 16 years ago #
I'm trying to do the same thing. No luck so far. Let me know if you find a solution
It's an option in the backend of the main blog. Settings -> reading I think.
just the same as for a regular WP blog.
jonperry
Member
Posted 16 years ago #
No this only sets it for the main blog, it does not set it as default for all blogs. We want it set by default for all new blogs.
jonperry
Member
Posted 16 years ago #
I even tried to use the New Blog Defaults but that didn't work either
Hey guys maybe it's a bit hacky, but take a look at wp-includes/wpmu-functions.php. There you can find functions wpmu_create_blog and install_blog_defaults.
So I think you can hack into the last function and manually set the options needed for static pages (as you can see in install_blog_defaults you can also create the page/post there and retrieve it's ID) with something like:
update_option("show_on_front", "page");
update_option("page_on_front", $pageid);
For more neat approach you can also try writing plugin that hooks up to the action wpmu_new_blog, it's getting called in the end of blog create function.
Anybody have any luck on getting this to work? I am trying to set the front page to be static and the blog page to be last. I am using this pretty amazing plugin that borrows code from DeannaS. The plugin is called "Blog Templates' by Greg Breese and it works really well. It has enabled me to roll out identical blogs for all our teaching faculty (there are hundreds) and they will not need to do any configuration, only editing content (which will be a huge training impact anyway...) except for this last bit. I could use some help figuring out how to code this into the plugin so that all blogs are created with the equivalent of having the Reading Settings set to have the front page be a static page that we have named "Profile". The other reason this is important is because we are required to have the faculty members name in the URL and have it land on their profile. I haven't been able to find ANY clearly described solutions to this problem, so maybe its not feasible?