Removing leading zeros from custom permalink structure

How about using custom rewrite tags/structure? So we’ll be using these two rewrite/structure tags: %monthnum2% does the same thing as the %monthnum% tag, but without a leading zero; e.g. 3 and not 03 for March. %day2% does the same thing as the %day% tag, but without a leading zero; e.g. 7 and not 07. The … Read more

404 Page Not Found for Only One Post

It is not listed in the Codex but perhaps the word ‘slug’ in the pages URL is a reserved word? Just a wild guess and could be completely wrong. I thought it may be worth mentioning however as others may encounter a similar problem and might be the result of using reserved words. If you … Read more

How to achieve a clean custom permalink solution?

WP allows you to add custom rewrite rules via WP_Rewrite – using them you can achieve pretty much anything you want – and if you like RegEx it will be a breeze. WordPress needs triggers by which it will recognize the type of page you are requesting, hence it’s default /category/ match rule along with … Read more

Permalinks broken regularly

I once had a problem like this. On my site was a malware and it edited a .htaccess file. Check by FTP that your .htaccess file is not changed. If yes, scan your site by any online malware scanner or any security WordPress plugin.

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