Title: permalink for custom posts
Last modified: December 13, 2017

---

# permalink for custom posts

 *  Resolved [jayaram558](https://wordpress.org/support/users/jayaram558/)
 * (@jayaram558)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/)
 * Hi I have similar issue posted here – [https://wordpress.org/support/topic/permalink-for-custom-posts-2/](https://wordpress.org/support/topic/permalink-for-custom-posts-2/)
 * I see the solution, but when i try to replicate the same, it says the post type
   is reserved alert message.
 * “please choose a different post type name as this one is reserved”
 * Can you help me with it. I want my default post types to have /blog/post-name
   as permalinks.
 * I have achived that by some re-write rules in functions.php file by adding “blog”
   before post permalink, but for AMP pages, it gives 404 as its not the correct
   permalink.
 * Any help on this please.
    -  This topic was modified 8 years, 5 months ago by [jayaram558](https://wordpress.org/support/users/jayaram558/).

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9778131)
 * Hello [@jayaram558](https://wordpress.org/support/users/jayaram558/),
 * Maybe some core functionality changed. Can you show me the exact message that
   is being displayed ?
 * Regards.
 *  Thread Starter [jayaram558](https://wordpress.org/support/users/jayaram558/)
 * (@jayaram558)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9778143)
 * Hi,
 * Here is the settings – [https://www.awesomescreenshot.com/image/3036254/225dc23dba1563bc3e505bd9ff1e245e](https://www.awesomescreenshot.com/image/3036254/225dc23dba1563bc3e505bd9ff1e245e)
 * And the error – [http://www.awesomescreenshot.com/image/3036263/c167efa68cc85f4db123a3146d732420](http://www.awesomescreenshot.com/image/3036263/c167efa68cc85f4db123a3146d732420)
 *  Thread Starter [jayaram558](https://wordpress.org/support/users/jayaram558/)
 * (@jayaram558)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9791518)
 * Hello Georgian Cocora,
 * Any update on this please??
 *  [b0tm0de](https://wordpress.org/support/users/b0tm0de/)
 * (@b0tm0de)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9805035)
 * Hello [@jayaram558](https://wordpress.org/support/users/jayaram558/), Im not 
   sure am I missing something about your question but you can not use slug as “
   post”. “post” is reserved for wordpress built in post type. I think in this [https://wordpress.org/support/topic/permalink-for-custom-posts-2/](https://wordpress.org/support/topic/permalink-for-custom-posts-2/)
   support page, it is just an example usage about slugs “post”
    You must change
   the slug. Dont use it as “post” or “posts”.
 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9805701)
 * Hello [@jayaram558](https://wordpress.org/support/users/jayaram558/),
 * Yes, I believe this was working on some older versions but cannot be done anymore,
   you should just create your own.
 * Regards.
 *  Thread Starter [jayaram558](https://wordpress.org/support/users/jayaram558/)
 * (@jayaram558)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9811909)
 * Hello [@raster02](https://wordpress.org/support/users/raster02/),
 * hmm ok. How do i change “with_front” to false for custom post types created.
 *  Plugin Author [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * (@raster02)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9830159)
 * Hello @jayram558,
 * We don’t have an option in the interface for this, but apply a filter over the
   post type arguments, when registering one.
 * You should be able to add this to defined post types using the following piece
   of code:
 *     ```
       add_filter('wck_cptc_register_post_type_args', 'wck_disable_with_front', 20, 2);
       function wck_disable_with_front($args, $post_type) {
       	if ((isset($args['rewrite']) && $args['rewrite'] != false) || !isset($args['rewrite']))
       		$args['rewrite'] = array('with_front' => false);
   
       	return $args;
       }
       ```
   
 * This can be added in the `functions.php` file from your theme.
 * Regards.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘permalink for custom posts’ is closed to new replies.

 * ![](https://ps.w.org/wck-custom-fields-and-custom-post-types-creator/assets/icon-
   256x256.png?rev=2257602)
 * [Custom Post Types and Custom Fields creator - WCK](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Georgian Cocora](https://wordpress.org/support/users/raster02/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/permalink-for-custom-posts-3/#post-9830159)
 * Status: resolved