Using taxonomy term in CPT permalink – Pages 404’s

Ended up with commenting out line 4 and changing the filter into this: add_filter(‘post_type_link’, function ( $post_link, $post, $id = 0 ) { if ( ‘project’ != $post->post_type || ‘publish’ != $post->post_status ) { return $post_link; } $post = get_post($id); if (is_object( $post ) && $post->post_type == ‘project’ ) { $terms = wp_get_object_terms( $post->ID, ‘department’ … Read more

Missing Page, But Still Exists In Preview

It certainly sounds like a caching issue. Even if you disable W3 Total Cache, often it keeps cache code in your wp-config.php file and .htaccess. Purge all that code and see if the problem persists. Also, make sure your web host does not have server caching. Many “managed” platforms have a built-in cache (eg. WP … Read more