Title: Will this work with programmatically-added content?
Last modified: March 21, 2018

---

# Will this work with programmatically-added content?

 *  [parakeet](https://wordpress.org/support/users/parakeet/)
 * (@parakeet)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/will-this-work-with-programmatically-added-content/)
 * Hi,
 * *When* does this plugin work?
 * I have a custom post type, “Quotes”, registered using `register_post_type( 'quote',
   $args );` and code options.
 * I have a script running on cron which finds quotes in public news content and
   inserts them as a “quote” post, using `wp_insert_post` and `wp_publish_post`,
   and maybe `wp_update_post`. `post_name` may be used in some cases.
 * By default, created “quote” post slugs are versions of the title (although the
   Permalinks setting for standard Posts is different). As it happens, it is currently
   problematic, because I find duplicate slugs are getting saved for posts with 
   the same legitimate headline.
 * Could your plugin help me?
 * ie. If I run your plugin on my custom post type “Quotes”, will all “Quotes” posts
   adopt the specified permalink structure even if they are created programmatically
   by a script? In other words, will your plugin take control? Or will everything
   still be run by the script?
 * What about if I don’t manually set `post_name` in the script? Would the plugin
   _then_ take over?
 * Thanks.

The topic ‘Will this work with programmatically-added content?’ is closed to new
replies.

 * ![](https://ps.w.org/custom-post-type-permalinks/assets/icon-256x256.png?rev=
   3495884)
 * [Custom Post Type Permalinks](https://wordpress.org/plugins/custom-post-type-permalinks/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-permalinks/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-permalinks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-permalinks/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [parakeet](https://wordpress.org/support/users/parakeet/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/will-this-work-with-programmatically-added-content/)
 * Status: not resolved