Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nazrul Islam Nayan

    (@nayanchamp7)

    @alijafark
    Thanks for the query. As ffw is used at the post type of XPlainer Product FAQs, you can’t change it with any filter directly. What you can do is to use an WordPress URL management plugin and change full URL to your expected URL.

    Thread Starter alijafark

    (@alijafark)

    @nayanchamp7 Thank you. What WordPress URL management plugin do you recommend?

    Plugin Author Nazrul Islam Nayan

    (@nayanchamp7)

    @alijafark

    function add_custom_rewrite_rule() {
    
        // First, try to load up the rewrite rules. We do this just in case
        // the default permalink structure is being used.
        if( ($current_rules = get_option('rewrite_rules')) ) {
    
            // Next, iterate through each custom rule adding a new rule
            // that replaces 'ffw' with 'faq' and give it a higher
            // priority than the existing rule.
            foreach($current_rules as $key => $val) {
                if(strpos($key, 'ffw') !== false) {
                    add_rewrite_rule(str_ireplace('ffw', 'faq', $key), $val, 'top');   
                } // end if
            } // end foreach
    
        } // end if/else
    
        // ...and we flush the rules
        flush_rewrite_rules();
    
    } // end add_custom_rewrite_rule
    add_action('init', 'add_custom_rewrite_rule');

    Please use this code to rewrite rules customization. It’s better not to use a plugin only for a slug changing.

    Use a code snippet plugin and paste the code there or Tell your developer to execute the code in your active theme or plugin or any code snippet plugin.

    Hope your issue will be solved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change faq URL’ is closed to new replies.