WordPress slugs and 404 handling takes preference over folders in site root?

For beta testing use either a separate domain or at least a subdomain in another directory than your live site. If you absolutely have to use the current setup install a plugin that offers password protection like Members or change the .htaccess rules to: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # … Read more

Truncating varying lengths of information

I know toscho doesn’t like this very much, but anyway: Converted the input args to an array: function utf8_truncate( $args = array( ‘string’ => null, ‘max_chars’ => 200, ‘append’ => “\xC2\xA0…” ) ) { $args[‘string’] = strip_tags( $args[‘string’] ); $args[‘string’] = html_entity_decode( $args[‘string’], ENT_QUOTES, ‘utf-8’ ); // \xC2\xA0 is the no-break space $args[‘string’] = trim( … Read more

Determining What Content Gets Displayed

The comment box will probably dissapear if you disable comments from the page editing screen (there’s a checkbox). To answer your question, no, there aren’t any simple rules, but here’s a rough outline: Which posts are to be displayed is determined by the WP_Query class. The way these posts are displayed, along with other elements … Read more

How to Call a static page in WordPress

So long as you have a standard page template header in your map-template.php, you can use the Custom Post Template plugin (which essentially allows you use templates on posts in the same way you do with pages). Update: Perhaps you might be better off using shortcode. For example; This is my post content in the … Read more

WordPress Locale Switching on Accept-Language Header

that’s going to be a bit tricky since WordPress doesn’t relate date and time format to language. so to get the current language from the browser you can use $_SERVER[‘HTTP_ACCEPT_LANGUAGE’] and then based on that you can change the date format: function update_date_format(){ $lang = substr($_SERVER[‘HTTP_ACCEPT_LANGUAGE’], 0, 2); if (strpos($lang, ‘au’) > 0){ $date_format=”d/m/Y”; // … Read more

Side by side blogging?

See If this helps. Bill Erickson has a great tutorial on how to use multiple content areas in thesis theme. I think you should be able to replicate it with any good WP Theme. Here is the link

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