looking for some help with a permalink structure problem. I am using this code here http://pastebin.com/QfgAMkfV as a plugin with hopes of creating a structure like so
This works, but I cannot display normal pages (pages not posts). I don't get a 404 error, instead I am just getting the latest post, which is coming from the index.php file.
If I disable permalinks everything works fine. I have tried changing to the default theme, updating permalinks, even changed server and re-installed wordpress.
Is this possible without using a plugin?