Layer 06

Come ti sistemo errore 404 con Custom Permalinks e WordPress 3.4 e superiori

Support not available at this time: Unfortunately, I don’t presently have the resources to offer support for this plugin. Please direct questions to the WordPress forums http://atastypixel.com/blog/wordpress/plugins/custom-permalinks/ Un cliente mi ha fatto notare che alcune pagine del suo blog davano 404 quando non erano trattate dal plugin. Il problema è da ricercarsi nel database di WP, ogni qual volta il post subisce una modifica genera una “revision” queste revision se intercettate dal plugin non so in quale modo lo disturbano. Dopo la linea 164 basta aggiungere il seguente codice:

" post_type NOT IN ('revision') AND ".
A questo punto il plugin salta tutte le revisioni dei post. Enjoy it.]]>