Support » Plugin: DW Knowledge Base » 'dwkb' slug in article permalinks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Khoi Pro

    (@khoipro)

    Thank you for your suggestion, @craig. The developer team should be notice and update it on version 1.1. I already added it to planning works.

    Adding the following code to functions.php helped.

    
    function add_custom_rewrite_rule() {
        $args = get_post_type_object('dwkb');
        $args->rewrite["slug"] = 'knowledge-base';
        register_post_type($args->name, $args);
        flush_rewrite_rules();
    } // end wpccps_th_add_custom_rewrite_rule
    add_action('init', 'add_custom_rewrite_rule');
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘'dwkb' slug in article permalinks’ is closed to new replies.