Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Can you please let me know whether the issue is resolved or not.

    If not, please run the below command and provide the result to me so that I can assist you in this regard.

    =======
    vi /home2/wterrell/public_html/iaoma.org/wp-content/themes/auberge/includes/setup/setup.php +806
    =======

    Also if you get the the below line by executing the above command, then change the code.

    Your code:
    ……….
    if (isset($_POST(‘sms_code’) == TRUE ) {
    ……….
    Change to
    ……….
    if (isset($_POST[‘sms_code’]) == TRUE ) {
    ……….

    Even better:

    if (isset($_POST[‘sms_code’])) {

    because isset returns a boolean anyway.

    Looking forward to your response. ??

    Forum: Fixing WordPress
    In reply to: redirect or not?

    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.

    Forum: Fixing WordPress
    In reply to: redirect or not?

    Hi,
    Can you please tell me the exact URL, because the above URL is showing “No posts found.” error. I believe that the there is some mismatch in the new URL. Also old URL is showing same error message.

    Please provide me the exact URL that you have added so that I can assist you in this regard. ??

Viewing 3 replies - 1 through 3 (of 3 total)