• When running the following:
    [cdbt-edit table=”prospect” enable_repeater=”true” display_list_num=”true” display_search=”true” display_title=”true” enable_sort=”true” display_filter=”true” display_index_row=”true” narrow_operator=”and” sort_order=”created:desc” limit_items=”3″ truncate_strings=”40″ thumbnail_width=”100″ image_render=”responsive” ajax_load=”true”]

    And making a field change I get a 404 error. No correction made.
    It puts a /wp-admin in the return URL

    I have added the following to my functions.php file:
    function my_cdbt_shortcode_custom_component_options( $component_options, $shortcode_name, $table ){
    if ( is_admin() && $shortcode_name === “cdbt-edit” ) {
    $component_options[‘actionUrl’] = admin_url( str_replace( ‘/wp-admin’, ”, $component_options[‘actionUrl’] ) );
    }
    return $component_options;
    }
    add_filter( ‘cdbt_shortcode_custom_component_options’, ‘my_cdbt_shortcode_custom_component_options’, 10, 3 );

    If I delete a row it works and returns to the current page.

  • The topic ‘CDBT_EDIT returning 404 error.’ is closed to new replies.