Creating new page with pre-defined parent page

You are right on the mark with GET, that would probably be easiest to make use of. Try this: Add_Child_Page::on_load(); class Add_Child_Page { static function on_load() { add_action( ‘init’, array( __CLASS__, ‘init’ ) ); add_action( ‘admin_init’, array( __CLASS__, ‘admin_init’ ) ); } static function init() { add_action( ‘admin_bar_menu’, array( __CLASS__, ‘admin_bar_menu’ ), 90 ); } … Read more

how can i add a menu link that goes to an external page

Admin Dashboard -> Appearance -> Menus If the theme is WP 3.0 ready, you will have an option to add a custom link (ie external link) on the left side, and you can drag and drop it into the order you want. Justin Tadlock wrote an awesome post about 3.0 menus – http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus If your … Read more

Change menu items URL

In your template you can check whether you’re on the front-page or not and then echo out a different menu. For example: if(is_front_page() || is_home()){ wp_nav_menu(array(‘theme_location’ => ‘primary_navigation’)); }else{ wp_nav_menu(array(‘theme_location’ => ‘secondary_navigation’)); } You would also have to register a second menu locations in the functions.php file (if it hasn’t been done yet). To register … Read more

Subpages return 404 error [closed]

You’re wanting to use “Pretty Permalinks” and in order to do so you need to have some form of rewrite documentation present. The easiest and most common is a .htaccess file to hold the rewrite rules. Do you have an .htaccess present for the site? If you do not, you can reference the WordPress Codex … Read more

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