How can i maintain permalink structure and avoid a 404 error when loading external content?

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

$_POST[‘message’] gives a 404 [duplicate]

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

404 Error for Custom Post type

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)