Preview posts returns 404

When posts are being previewed WordPress appends a query string to the end of the url. The permalink settings are not applied until the post is published. While the post is in draft status the preview link will be yourdomain.com/?p=1119&preview=true where p=xxxx is the post id number. Once the post is published and you make … Read more

Get Permalink of Network Blog Post

That sounds pretty simple. Use: http://codex.wordpress.org/Function_Reference/switch_to_blog To go back use: restore_current_blog(); This allows you to switch from site to site. Then: http://codex.wordpress.org/Function_Reference/get_permalink My assumptions are that you have both the Blog ID and the Post ID. If that’s the case – using those two functions should solve your problem.

wordpress htaccess is hijacking my .mp4 files

A missing mime type should not cause a 404 page but the AddType needs to be wrapped in <IfModule mod_mime.c> tags. <IfModule mod_mime.c> AddType video/mp4 .mp4 .m4v AddType video/mpeg .mpeg .mpg .mpe AddType video/asf .asf .asx .wax .wmv .wmx AddType video/avi .avi AddType video/quicktime .mov .qt AddType audio/ogg .ogg </IfModule> I’m running jw player on … Read more

Override database config for WordPress multisite

Just came up with a solution to this issue posted here https://stackoverflow.com/questions/12958123/override-wp-siteurl-and-wp-home-for-wordpress-multisite/ Basically you do not copy the wp_site and wp_blogs tables to your development installs when pulling in a production database, and have pre-configured them locally for your development URLs. You then leverage a network-wide plugin to set the WP_SITEURL and WP_HOME values based … Read more

WP Multisite Static Frontpage

I would recommend waiting until WordPress 3.4 is released. Among other features, it is slated to include the ability to allow Themes to define/declare a static front page. I believe this functionality should suit your needs. (Note: as of today, WordPress 3.4 just hit Beta 1, and is scheduled for final release in May.)

How to Rename wp-login.php for Multisite?

First things First … The Rewrite Rule Basically all this rewrite says is (say it out loud) … when I type mysite.com/login and hit enter, then take the user (rewrite) to mysite.com/wp-login.php This is not a URL mask or URL Forwarding which is what you are hoping for. Second Part … After Login – Redirect … Read more

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