Admin-Ajax Error

You need to pass the values to the localization script, “right” after this line:

wp_enqueue_script('rnm_load_more');

I’m going to pass the admin URL to your script by using wp_localize_script:

$localization = array(
    'ajax_url' => admin_url('admin-ajax.php'),
);
wp_localize_script( 'rnm_load_more', 'jjang', $localization );

Now, you can use the ajax_url in your script:

var ajaxurl = rnm_load_more.ajax_url;

You can send the rest of the data by using this method.