WordPress custom post type post and category links 404
Flush your permalinks whenever you add/remove/modify a taxonomy or post type. You can do this in the backend by simply going to the permalinks page and resaving
Flush your permalinks whenever you add/remove/modify a taxonomy or post type. You can do this in the backend by simply going to the permalinks page and resaving
Do you have the SRG Clean Archives Plugin active on the site? If so, try disabling it.
You could use a WordPress rewrite (as opposed to mod-rewrite) to solve the issue. function createRewriteRules( $rules ){ $newrules = null; $newrules = array(); $newrules[“catalog/?$”] = “index.php?page=xx”; $rules = $newrules + $rules; return $rules; } add_action(‘rewrite_rules_array’, ‘createRewriteRules’); You’ll need to flush the rules: http://codex.wordpress.org/Function_Reference/flush_rewrite_rules Your page-catalog.php file could then sniff the original url and do … Read more
To insert a post into the WordPress database, whether you are doing it as a logged in user to the current WordPress installation or over XML-RPC (or any other remote methodology) you need to be using something along the lines of; $the_post = array( ‘post_title’ => ‘Post Title’, ‘post_content’ => ‘My post content’, ‘post_status’ => … Read more
Opps I take that back … you must be changing stuff at the same time as i was writing this .. so this answer may not be any help at first it seemed the URL’s were wrong the title url is linking to events the read more is linking to event eg .. http://www.gregtaylordesignstudio.com/absinthe/event/dead-divine-farewell-tour/ and … Read more
The problem was not with the theme, upgrading to 3.4.2 from 3.3.1 caused this.
If you’re working with custom post types and keep getting 404 errors, you often just need to re-save your site’s permalinks under Settings > Permalinks. Try that and let me know if it works.
I added remove_action( ‘wp_head’, ‘feed_links’, 2 ); in functions.php file. and added in the header.php. This fulfilled my purpose.
What i found was the easiest way to solve this problem – and what i eventually ended up doing – was to build a custom pagination using querystrings.
It turned out to be an .htaccess rule put in by a coworker. It was supposed to target just some .pdf files but the rule wasn’t written strict enough. So that was a fun few hours spent on wild goose chases.