Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pageInformation = get_page_by_title('Information');
- $pageBlog = get_page_by_title('Blog');
- $pageMessage = get_page_by_title('Message');
- // Set the "Front page displays" reading options
- $show_on_front = get_option('show_on_front');
- if ( $show_on_front != 'page' ){
- update_option( 'show_on_front', 'page' );
- }
- $page_on_front = get_option('page_on_front');
- if ( $page_on_front != $pageInformation->ID ){
- update_option( 'page_on_front', $pageInformation->ID );
- }
- $page_for_posts = get_option('page_for_posts');
- if ( $page_for_posts != $pageBlog->ID ){
- update_option( 'page_for_posts', $pageBlog->ID );
- }
Add Comment
Please, Sign In to add comment