codeforamerica / cfawp2012

Wordpress template for CfA site redesign
7 stars 14 forks source link

Clean permalinks for Projects post type #1

Closed bensheldon closed 11 years ago

bensheldon commented 13 years ago

I added code to generate clean permalinks for the Project custom post type. They would now look like: projects/%year%/%postname%

e.g. URLs would now look like this:

http://codeforamerica.org/projects/2011/change-by-us

...instead of this:

http://codeforamerica.org/?cfa_project=change-by-us

Yearly archive pages are also automatically created too (though should probably be explicitly themed by creating a _archive-cfaproject.php file).

bensheldon commented 13 years ago

Also, after applying this, you will need to reset the permalinks: Settings -> Permalinks -> click Save

bensheldon commented 11 years ago

Not sure why this was closed.

bensheldon commented 11 years ago

Ah, cause this was fixed somewhere else.