Page can not be updated and disappeared in “show all page”

You can try to repair your database. To do it, please read this answer in StackOverflow. If repairing database didn’t worked, you can try to update the post status manually. Connect to your database Find the page in the wp_posts table (you can find it through the post_title field) Update the record running a script … Read more

Grabbing the_content from “about us”

You can use get_page_by_title() or get_page_by_path() to retrieve page object that will have title and content (which you might need to further process a bit, depending on how complex it is). And if I remember right get_the_post_thumbnail() gives you featured image.

disable trashability for certain pages

Add this to your functions.php in your theme folder: function restrict_post_deletion($post_ID){ $user = get_current_user_id(); $restricted_users = array(21,25,54,2,19); $restricted_pages = array(2,21,52,64); if(in_array($user, $restricted_users) && in_array($post_ID, $restricted_pages)){ echo “You are not authorized to delete this page.”; exit; } } add_action(‘wp_trash_post’, ‘restrict_post_deletion’, 10, 1); add_action(‘wp_delete_post’, ‘restrict_post_deletion’, 10, 1); Taken from here and updated to the latest WP version.

Directory location of new page

WordPress does not create a new file in the filesystem when you create a page from the backend. The data you enter into the backend is saved to the MySQL database where it is retrieved by various and sundry queries and displayed by code in one or more templates. There is no “directory location” for … Read more

Add feed to a custom page

The only way to accomplish this would be to add in new rewrite rules for these urls. There are a bunch of different ways to accomplish this, but here’s one example: <?php add_filter( ‘generate_rewrite_rules’, ‘me_filterRewriteRules’ ); function me_filterRewriteRules( $wp_rewrite ) { $newRules = array(); // Replace [your-slug] with the slug of your page $newRules[‘[your-slug]/feed/?$’] = … Read more