Title: Post previews broken
Last modified: August 21, 2016

---

# Post previews broken

 *  [conn](https://wordpress.org/support/users/conn/)
 * (@conn)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/post-previews-broken/)
 * Hi,
 * Have recently been running into an issue with Custom Content Type Manager: post
   previews result in a “Page Not Found” error when “pretty permalinks” are enabled.
 * I’ve disabled all other plugins, rebuilt the .htaccess file, emptied my browser
   cache etc, but can’t seem to figure this one out. (The previews are, of course,
   working when pretty permalinks are disabled).
 * Thanks for your help!
 * [http://wordpress.org/extend/plugins/custom-content-type-manager/](http://wordpress.org/extend/plugins/custom-content-type-manager/)

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

 *  Plugin Contributor [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/post-previews-broken/#post-3789434)
 * WP’s URL handling is worthy of scorn in my opinion, so this type of thing is 
   really hard to troubleshoot. A couple relevant details here would be:
 * 1. What are the *exact* settings for your site’s permalinks? “Pretty permalinks”
   isn’t a specific setting that I’m aware of.
 * 2. Confirm that your post-type is set to be publicly visible and its permalink
   settings are compatible with your site’s settings (try the simplest possible 
   options, i.e. permalinks off, then change into more complex)
 * It’s worth trying a couple options here because WP is so poorly architected in
   this area. Another thing to try is try activating a default theme — sometimes
   themes manipulate the URL structure by changing queries.
 *  Thread Starter [conn](https://wordpress.org/support/users/conn/)
 * (@conn)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/post-previews-broken/#post-3789501)
 * (Totally agree about WP’s URL handling – massive pain).
 * Have tried all of those suggestions, but still having the issue. To elaborate:
 * 1. The issue occurs when the permalinks are set to anything other than “Default”.(
   I’ve set them to “Month and name”, with a value for category base and tag base).
 * 2. The issue is actually occurring with the default post type (ie not a custom
   post type). I’ve disabled all custom post types within the plugin and the issue
   still recurs. I can disable every component of Custom Content Type Manager and
   the issue recurs, but if I disable the plugin itself the issue fixes itself.
 * 3. The issue also recurs regardless of the theme (I set the theme to “Twenty 
   Eleven” and still had the same issue).
 * If it’s any help, the issue seems to have only begun occurring with the update
   to WP 3.5.1 (I’m on the current version of the Custom Content Type Manager plugin).
 * Thanks for your help so far!
 *  Plugin Contributor [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * (@fireproofsocks)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/post-previews-broken/#post-3789518)
 * I would guess it’s the `request_filter()` function inside of the includes/CCTM.
   php file — there have been a lot of bugs around the query that gets manipulated
   in that function. The query wouldn’t be so fragile if WP were architected sensibly…
   sigh. I think the best plan here is to file a bug report — I need to finally 
   sit down and write unit tests for this. I haven’t rolled up my sleeves and written
   tests yet because if custom URL handling is a requirement, I don’t use WP, I 
   use MODX — it’s so much better at this there’s no comparison.

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

The topic ‘Post previews broken’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-type-manager_c9c790.
   svg)
 * [Custom Content Type Manager](https://wordpress.org/plugins/custom-content-type-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-content-type-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-type-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-type-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-type-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-type-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [fireproofsocks](https://wordpress.org/support/users/fireproofsocks/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/post-previews-broken/#post-3789518)
 * Status: not resolved