Hi,
On checking the URL: https://www.homestayenglish.uk.com/book2/ , I could see that it is loading “No posts found. Try a different search?”. I believe that the post “book2” is currently not available in the server where it is hosted.
However if you would like to rename the post as “how_to_book”, please change the name of the post from “book2” to “how_to_book”. Make sure the file “book2” is present in the server.
You can, of course, change “book2” to anything you want… just replace every instance of “how_to_book” in the code below with your desired label. All you need to do is paste this into your theme’s functions.php file.
=============
function revcon_change_post_label() {
global $menu;
global $submenu;
$menu[5][0] = ‘how_to_book’;
$submenu[‘edit.php’][5][0] = ‘how_to_book’;
$submenu[‘edit.php’][10][0] = ‘Add how_to_book’;
$submenu[‘edit.php’][16][0] = ‘how_to_book Tags’;
echo ”;
}
function revcon_change_post_object() {
global $wp_post_types;
$labels = &$wp_post_types[‘post’]->labels;
$labels->name = ‘how_to_book’;
$labels->singular_name = ‘how_to_book’;
$labels->add_new = ‘Add how_to_book’;
$labels->add_new_item = ‘Add how_to_book’;
$labels->edit_item = ‘Edit how_to_book’;
$labels->new_item = ‘how_to_book’;
$labels->view_item = ‘View how_to_book’;
$labels->search_items = ‘Search how_to_book’;
$labels->not_found = ‘No how_to_book found’;
$labels->not_found_in_trash = ‘No how_to_book found in Trash’;
$labels->all_items = ‘All how_to_book’;
$labels->menu_name = ‘how_to_book’;
$labels->name_admin_bar = ‘how_to_book’;
}
add_action( ‘admin_menu’, ‘revcon_change_post_label’ );
add_action( ‘init’, ‘revcon_change_post_object’ );
===================
Note: Best practice would be to paste the above code into a functionality plugin so this travels with you no matter what theme you are using (this of course depends on the situation and the client/user).
No need to change anything in permalink.
Please verify this from your end and let me know the update.