• Resolved JasperPress

    (@jasperpress)


    Hi there!
    I was wondering if it is possible to get the option to stop rewriting testimonial URL’s with the front_page, so the /blog/ , for example, would be left out.
    Of course, I can add this to the post-types.php file, but the changes would be gone with the next update.

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

    (@cdillon27)

    The next update will be in 2-3 days and I will add a filter for the post type parameters. Until then, proceed with modifying post-types.php.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Version 2.14.3 adds the filter wpmtst_post_type for modifying the post type parameters.

    Add this to your theme’s functions.php:

    function my_wpmtst_post_type( $args ) {
      $args['rewrite']['with_front'] = false;
      return $args;
    }
    add_filter( 'wpmtst_post_type', 'my_wpmtst_post_type' );
    

    Then go to admin > Settings > Permalinks and simply click “Save Changes” to pick up the change.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rewrite url with_front=>false ?’ is closed to new replies.