On Install, which code sets the ‘home’ option?

When the installer runs it calls wp_install(), that in turn calls populate_options() defined in wp-admin/includes/schema.php, which runs the following.. if ( !__get_option(‘home’) ) update_option(‘home’, $guessurl); Prior to that $guessurl is defined by.. $guessurl = wp_guess_url(); The guess URL function is defined in wp-includes/functions.php and looks like this. function wp_guess_url() { if ( defined(‘WP_SITEURL’) && ” … Read more

Linking to page with all posts

You have to create a page template with Loop inside. Then create a page “All My Posts” and assign the template you’ve created to it in “Page Attributes” section of “Edit Page” admin page. You can link to this page from the Front Page using get_page function. Function Reference/get page.

Can’t change parent page

I was able to fix this problem only in phpMyAdmin. Shortly: find the child page in the table ‘wp_posts’ and change the value of ‘post_parent’ to 0 (zero). Step by step: Browse the table ‘wp_posts’, find the child page by title (post_title) or whatever else attribute. Be sure it isn’t a revision (check it in … Read more

How to change the permalink structure of a master page?

To remove pagination prefix page in home page you should: add a rewrite rule which will translate the new link format, prevent redirection to address containing page, replace URLs in paging links. By creating pagination links, WordPress appends query var paged with mentioned prefix to url. Therefore, without modification, the links would look like example.com/3/page/3. … Read more