url rewrite .htaccess extension to permalink

This should work for you- function wpse28906_rewrites_init(){ add_rewrite_rule( ‘mypage/([^/]+)/?$’, ‘index.php?pagename=mypage&myslug=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpse28906_rewrites_init’ ); function wpse28906_query_vars( $query_vars ){ $query_vars[] = ‘myslug’; return $query_vars; } add_filter( ‘query_vars’, ‘wpse28906_query_vars’ ); You can then use get_query_var( ‘myslug’ ) in your template to get your slug value. Don’t forget to flush your rewrite rules after adding … Read more

Permalinks on post is working, on pages 404 error

There’s not much info available by following your link. I suggest the basic troubleshooting steps: Disable all plug-in’s and test the links Switch to Twenty-Ten or Twenty-Eleven theme If it’ still not working, make sure you have the default .htaccess and nothing more. Here is what it should look like (I had to link to … Read more

Custom JSON feed rewrite

The AJAX request would query for the dates it requires to display. With Lazy fetching set, if you switch from month to week or day views it won’t bother making another request, since it doesn’t need to. This is outlined in the fullcalendar documentation. As for using this method, see this question on how to … Read more

Changed permalink structure of CPT – should I redirect?

I concur that you need to add a redirect. You can do this easily with the following function. I’m sure you will have to tweak it, but it’s a good proof-of-concept. add_action(‘parse_request’, ‘redirect_books_to_fiction’, 0); function redirect_books_to_fiction(){ global $wp; if(preg_match_all(‘~literature\/(.+)/(.+)?~’, $wp->request, $matches)){ $redirect = get_bloginfo(‘siteurl’).”https://wordpress.stackexchange.com/”.str_replace(‘books’, ‘fiction’, $wp->request); wp_redirect($redirect, 301); exit; } } To further answer you … Read more

Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard

You named the custom post type ‘custom_about_post’ not ‘about’. Rename the archive template to archive-custom_about_post.php or better: rename the post type. As a rule of thumb: Avoid underscores in post type names. There are/were some issues, especially with templates. And why do you need a custom post type just for about pages? What’s your goal?