Please enter the 404 URL in here:

"> */ ?>

We will redirect the specific 404 url to the current post

for example: /dddeeefff.php

post_type == '404s') { add_meta_box("func_404s_redirect_control_meta_box_id", __( 'What is the 404 URL?', 'wordpress-404s' ), 'content_func_404s_redirect_control_meta_box', null, "side", "high", null); } } function save_content_func_404s_redirect_control_meta_box($post_id, $post, $update) { global $post; $current_page_id = get_the_ID(); $get_post_meta_value_for_this_page = get_post_meta($current_page_id, '404surlredirect', true); if(isset($_POST['404surlredirect']) != "") { $meta_box_checkbox_value = sanitize_text_field(trim($_POST['404surlredirect'])); update_post_meta( $current_page_id, '404surlredirect', $meta_box_checkbox_value ); } else { update_post_meta( $current_page_id, '404surlredirect', '' ); } } add_action( 'add_meta_boxes', 'func_404s_redirect_control_meta_box' ); add_action( 'save_post', 'save_content_func_404s_redirect_control_meta_box' , 10, 3);