Title: Permalink Bug
Last modified: August 21, 2016

---

# Permalink Bug

 *  [FitWP](https://wordpress.org/support/users/fitwp/)
 * (@fitwp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/permalink-bug-4/)
 * Hi,
 * Thanks for creating this great plugin. It helps me a lot in managing our email
   campaigns.
 * I’ve just noticed a weird bug with permalink, that breaks our permalink structure(
   returns 404 for archive & single custom post type pages). After digging into 
   the code of the plugin, I see that you use `flush_rewrite_rules()` right after`
   register_post_type()` function. That causes a lot of unneeded calls to refresh
   permalinks on every page load, which _might_ affect other permalink setup.
 * Regarding [the Codex](http://look4wp.com/register_post_type), this function (`
   flush_rewrite_rules()`) should be called only once when the plugin is activated.
 * I suggest removing that line (`class-chimppress-setup.php` file, line 72) to 
   make it work properly (after removing this line, our permalink structure works
   pretty well).
 * Thanks.
 * [http://wordpress.org/plugins/chimppress/](http://wordpress.org/plugins/chimppress/)

The topic ‘Permalink Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/chimppress_faf3fa.svg)
 * [ChimpPress](https://wordpress.org/plugins/chimppress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/chimppress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/chimppress/)
 * [Active Topics](https://wordpress.org/support/plugin/chimppress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/chimppress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/chimppress/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 0 replies
 * 1 participant
 * Last reply from: [FitWP](https://wordpress.org/support/users/fitwp/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/permalink-bug-4/)
 * Status: not resolved