Format HTTP links

Actually, the extension is irrelevant. When your page is returned, WordPress is setting the content-type for the file in the headers as text/html; charset=UTF-8. This tells any consuming application that the content is HTML, not XML. You need to force WordPress to send the appropriate headers when outputting the XML. This content type is set … Read more

How do you create %post_type%/%postname%/ permalink structure?

Beyond the fact that disabling ‘pretty’ permalinks in the Settings > Permalink page disables pretty permalinks for all post types and taxonomies, the options do not effect custom post types or taxonomies. If you set the permalinks to blog/%postname% then your posts will have the structure: www.yoursite.com/blog/hello-world. On the other hand, when a post type … Read more

Changing the permlink and SEO

You can check the status of the redirect using any number of developer tools (chrome can do this by default). I believe the default redirect that wordpress does when the post title is changed is a 301, but I could be mistaken. If you need finer control (or would like regex support), the Redirection plugin … Read more

add_query_vars and canonical links

WordPress thinks you’re on those pages because of the pagename query var in your rewrite rules. Your journey is going to start in wp-includes/default-filters.php, which every WP developer should known and love: it’s where the WordPress care uses its own plugin API to hook in and change stuff. Of interest to your question: <?php add_action( … Read more

How to add a post without assigning to a category?

Ok, I found the solution to the question I asked above. It is possible to get such permalinks by using plugins like http://wordpress.org/extend/plugins/custom-permalinks/ (I tried it and worked) http://wordpress.org/extend/plugins/permalink-editor/ The first plugin “custom-permalinks” allows admin to edit the slug including category. So, it is now possible to make the permalink in anyway you want. This … Read more