Custom Post Type, 404 error

I solved by eliminating the following portion of code: I don’t remember why I had to code it, it apparently solved an issue, even if I don’t remember what issue. The portion is the following: add_action(‘pre_get_posts’, function ($query) { if (!is_admin() && $query->is_main_query() && empty($query->query_vars[‘suppress_filters’])) { if (is_archive()) { if (is_category()) { $query->set(‘post_type’, [‘post’, ‘docs’]); … Read more

Cannot Create a new Post [closed]

You can try each one of these: Go to WordPress Dashboard > Settings > Permalinks and simply hit Save Changes. Make sure there’s no index.html in your website’s root directory (i.e. the directory in which WordPress files are located). Create an .htaccess file in your wp-admin directory with the following contents: <IfModule mod_security.c> SecFilterEngine Off … Read more

404 Error On Custom Taxonomy Pages 2, 3, etc

Alright, so after lots of reading, copying & pasting, and plugin installation I have finally gotten it to work. This is using a custom post type: Sermons, a custom taxonomy: Series and allowing pagination on both pages. First I downloaded this plugin here: http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/ Next I typed in the URL I wanted to change to … Read more