I have a newbie question. I would like to amke my wiki


I have a newbie question. I would like to amke my wiki the homepage .. how do I make it so http://wiki.appletvusergroup.org goes to http://wiki.appletvusergroup.org/?incsub_wiki=apps

  • Ash

    Hello @noah

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    I don't think this can be easily done :slight_frown: You will need to add some custom code. Here is an example: http://wordpress.stackexchange.com/questions/42461/is-it-possible-to-use-a-single-custom-post-as-the-site-front-page

    function add_pages_to_dropdown( $pages, $r ){
        if ( ! isset( $r[ 'name' ] ) )
            return $pages;
        if ( 'page_on_front' == $r[ 'name' ] ) {
            $args = array(
                'post_type' => 'portfolio'
            $portfolios = get_posts( $args );
            $pages = array_merge( $pages, $portfolios );
        return $pages;
    add_filter( 'get_pages', 'add_pages_to_dropdown', 10, 2 );

    You need to use incsub_wiki as post type in the above code. You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name 'mu-plugins'. If there is no folder in that name, then create a folder, name it 'mu-plugins', create a file inside that, give any name you like and paste the code in there. You don't need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always. If you use mu-plugins then add a php start tag at the beginning of the code.

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.