WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a multisite project and have a small problem with static front page/post. In general i am looking for a way to choose a static page/post out of the whole network on my main blog. Now i'm not sure however how this can be done.

As i see it there are three ways to do it:

  1. Doing an old fashioned redirect to the page in question using header("Location: ");
  2. Extending, create a settings option and action or finding a plugin which lets me choose a post from any blog on my network.
  3. Overriding the build in function that chooses the front page and use the switch and restore blog functions to fetch the correct post-ID. If so with what function/tag should i use if that is possible to do it that way?

Which way would you recommend or is there another way to do this?


The code i have (besides the settings-reading extension which workes fine) is as follows:

$get_blog = get_option("listah_static_blogid");
$get_pageid = get_option("listah_static_pageid");
// Somehow use the get_pageid to display the page in question and set as front_page for main blog
share|improve this question
Have you made any effort to implement any of these options? – s_ha_dum Mar 12 '13 at 22:59
@s_ha_dum yes i have. Created a small add-on to choose global posts and in a way overriding the build in static page chooser in Settings>Reading panel. But i'm not sure how to implement this on the site itself so it chooses the correct site from the correct blog and displays it as the front page on my main blog. – dansige Mar 13 '13 at 6:42
Ok. Post the code you are working on, please. – s_ha_dum Mar 13 '13 at 13:38
@s_ha_dum The code i have is basically the extension to the settings-reading page where is set the two options, fetch blogID, fetch postID. However the part i have a problem with i don't have a code because i'm not sure how to implement it. I'll edit my question to add the part i have. Don't know if that is the correct way to do this. – dansige Mar 13 '13 at 18:37
you want only the content or the look as well? – Mark Kaplun Mar 13 '13 at 19:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.