• I am trying to add default pages, besides the “About” page. I used this thread: https://mu.www.ads-software.com/forums/topic/12922?replies=16#post-98272

    It mentions the /wp-include/wpmu-functions.php (MU installation). I looked in /wp-include/ms-functions.php (in my mind, the WP 3.0 equivalent), but from what I can tell, the about page and its content are not generated there.

    So where is it generated, and/or where can add code to add more default pages?

    As a bonus, what code would I add (I should be able to figure that out if I find where its being created though)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    There is no file. WordPress stores it’s pages in the same place it stores it’s posts: the database.

    https://codex.www.ads-software.com/Pages

    Thread Starter tupston

    (@tupston)

    Right, I know that they are stored in the database, but somewhere in the file system, there has to be some sort of code telling it to make a second default page called “about” – kind of like this:

    // Create a page
    	$wpdb->insert( $wpdb->posts, array(
    		'post_author' => $user_id,
    		'post_date' => $now,
    		'post_date_gmt' => $now_gmt,
    		'post_content' => __('BLAHBLAHBLAH'),
    		'post_excerpt' => '',
    		'post_title' => __('2ND PAGE'),
    		'post_category' => 0,
    		'post_name' => __('pagetwo'),
    		'post_modified' => $now,
    		'post_modified_gmt' => $now_gmt,
    		'post_status' => 'publish',
    		'post_type' => 'page',
    		'to_ping' => '',
    		'pinged' => '',
    		'post_content_filtered' => ''
    	) );
    
    	// Flush rules to pick up the new page.
    	$wp_rewrite->init();
    	$wp_rewrite->flush_rules();

    But where this type of code is for WP 3.0, I do not know. that is what I am asking.

    Thanks.

    Thread Starter tupston

    (@tupston)

    Yay! Much appreciated ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Default pages: where (what file) is the “About” page being created?’ is closed to new replies.