URL Forwarding – wordpress links reverting back

The internal links are all hard-coded; you’ll have to do a search/replace in the database to fix them. This is a good script for search/replace that will go through your posts, widgets, everything: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ Download the script, and upload it into your WordPress root directory (same path as wp-config.php). Surf to the script, then follow … Read more

Accidentally Changed WordPress Url

If you’re on a local install, it’s fairly trivial to fix this. Just use phpMyAdmin to reset home_url and/or site_url in the wp_options table in the database. Switching between two localhost installs is also fairly straight-forward: just don’t actually use “localhost” for anything. Instead, set up a unique domain in your system’s hosts file for … Read more

Avoid too long words in a post title, post content or comment but only if its not a url

Thank you Milo, “word-break” alone wasn’t enough as it’s css3 only and not cross-browser. But I found this: .bloc_content{ overflow:hidden; -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; } It seems to to work in all cases I tested. Hopefully it would be cross-browser enough to solve the problem. Not sure … Read more

Append custom parameter to taxonomy/term URI

You can try this: function my_car_rewrite_rules( $rules ) { $newrules = array(); // add a rule for this kind of url: // http://myhost.com/cars/ferrari/used/123 // => http://myhost.com/index.php?post_type=cars&ferrari=used&p=123 $newrules[‘^cars/([^/]+)/([^/]+)/([^/]+)$’] = ‘index.php?post_type=cars&$matches[1]=$matches[2]&p=$matches[3]’; return $newrules + $rules; } add_filter(‘rewrite_rules_array’,’my_car_rewrite_rules’); and remember to “save the permalinks” when testing. I added /cars/ so this rewrite will not overwrite your other pages. … Read more

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