Support » Fixing WordPress » permalinks break single_month_title

  • Praise Jebus, I finally got permalinks working!
    Now as a result, single_month_title returns nothing (it was working fine before). Any know why or have an alternative tag I can use to put the month & year at the top of monthly archive pages?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ryan Boren


    WordPress Dev


    Or write into the .htaccess file something like:
    RewriteRule ^([0-9]{4})/([0-9]{1,2})?/?$ /wordpress/viewphp.php?year=$1&monthnum=$2 [QSA]
    where the first half corresponds to your permalink format. In the example, that’s 2004/08 (or whatever), but depending on the structure you’ve chosen it might be slightly different. Compare to the other RewriteRules in your .htaccess
    It worked for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘permalinks break single_month_title’ is closed to new replies.