Moving local wordpress page to a real server subdomain broke my permalinks?

You have to change other URLs in the database, not just in the wp_options tables. Use these queries in phpmyadmin to change post links and metadata within post and page content: UPDATE wp_posts SET guid = replace(guid, ‘http://www.olddomain.com/’,’http://www.newdomain.com/’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.olddomain.com/’, ‘http://www.newdomain.com/’); UPDATE wp_postmeta SET meta_value = replace(meta_value, ‘http://www.olddomain.com/’, ‘http://www.newdomain.com/’); Reset … Read more

How to redirect to correct pages after permalink structure change

WordPress should handle all redirections correctly, without you needing to worry about them. For example, if your old post was http://example.com/2012/10/11/i-like-stackexchange any links should auto-magically be redirected to http://example.com/favorite-things/i-like-stackexchange. I just tested it on a site with WordPress 3.4 installed, and it worked just fine. WordPress can read your mind.

Include Post Format in permalink

While researching this topic myself, I found a plugin called Post Format Permalink. However, this plugin is not compatible with recent versions of WordPress; it is also filled with unnecessary code. I forked the plugin’s repository on GitHub, and improved the code greatly. I can now use a %post_format% tag in my permalink structure, and … Read more

WordPress add_permastruct unwanted matches

I’ve been struggling all morning to solve this and found your question when searching for the answer. I’m sure it’s a little late for you now but in case anyone else stumbles across this question here’s the solution I found: Change: $wp_rewrite->add_permastruct(‘competition’, ‘/au/%prize_category%/%competition%/’, false); To: $wp_rewrite->add_permastruct( ‘competition’, ‘/au/%prize_category%/%competition%/’, array( ‘walk_dirs’ => false ) ); walk_dirs … Read more