Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    Hi Romanko,

    Try this:

    /*
     * Change slug for Strong Testimonials
     */
    function strong_change_slug() {
      add_permastruct( 'wpm-testimonial', "references/%wpm-testimonial%", array( 'slug' => __( 'references', 'my_theme_text_domain' ) ) );
    }
    add_action( 'init', 'strong_change_slug' );

    I changed both instances of review to references. The wpm-testimonial cannot be changed. Be sure to flush the rewrite rules by going to Settings > Permalinks and simply clicking “Save Changes”.

    See this topic for more info:
    https://www.ads-software.com/support/topic/how-to-change-the-slug

    Thread Starter Romanko

    (@romanko)

    Thanks for the answer, I am not sure why, but it doesn’t work. It doesn’t change the URL.

    I did flush the rules. I’ll try disabling and enabling the plugin. Or anything else?

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Bummer. Does your theme or another plugin have a “references” feature?

    Thread Starter Romanko

    (@romanko)

    Hi Chris, I am back at this.

    No, probably not. But anyway I really want to change it to “referencie” because of my language. It still doesn’t work.

    I put the code into functions.php, I don’t know what the problem is.

    Thread Starter Romanko

    (@romanko)

    OH jeez nevermind, my file was called function.php, not functionS.php.

    Anyway, it’s working now. Thanks

    And Thank you for the great plugin!

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Thanks for the update. I’m glad to hear it’s working.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change URL ver 14.5’ is closed to new replies.