Title: Fixes needed in plugin
Last modified: April 26, 2018

---

# Fixes needed in plugin

 *  [devphase](https://wordpress.org/support/users/devphase/)
 * (@devphase)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/fixes-needed-in-plugin/)
 * Using 4.9.4 I had to make the following modifications to get this working properly:
 * Issue: [https://drive.google.com/file/d/1YAeSuG7ppHIp5DXr6Vyy1jfTZEgf0ZPh/view?usp=drivesdk](https://drive.google.com/file/d/1YAeSuG7ppHIp5DXr6Vyy1jfTZEgf0ZPh/view?usp=drivesdk)
 * Quick fix:
    /wp-content/plugins/simple-post-type-permalinks/includes/Module/Admin.
   php:186
 *     ```
       			//$front = '<span class="front">' . esc_html( substr( $wp_rewrite->front, 0, - 1 ) ) . '</span>';
       			$front = esc_html( substr( $wp_rewrite->front, 0, - 1 ) );
       ```
   
 * Issue: Passing `"sptp_permalink_structure" => "foo/%post_id%"` was leaving the
   permalink field disabled. Checked the code and it appears to be setup to work
   like this instead:
 * If you register post type `register_post_type( 'foo'` the plugin expects post
   type to be passed in like this: `"sptp_foo_structure" => "foo/%post_id%"` (note
   the “foo” being used in the variable name).

The topic ‘Fixes needed in plugin’ is closed to new replies.

 * ![](https://ps.w.org/simple-post-type-permalinks/assets/icon-256x256.png?rev=
   1126124)
 * [Simple Post Type Permalinks](https://wordpress.org/plugins/simple-post-type-permalinks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-post-type-permalinks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-post-type-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-post-type-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-post-type-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [devphase](https://wordpress.org/support/users/devphase/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/fixes-needed-in-plugin/)
 * Status: not resolved