Using php parameters in URL vs. custom taxonomy?
-
I have a site for an organization with about 20 committees. Using committee names as categories lets my main blog page use the Categories widget in my sidebar to display posts from a particular committee.
I also want each committee to have a dedicated page with a quasi-sticky post for the purpose of the committee, a quasi-sticky post that displays thumbnail images of committee members, then the most recent post with tag “agenda” for the committee, then the three most recent posts with tag “minutes” for the committee.
A sidebar widget would list all the committees to permit jumping to the dedicated page for a different committee.
Because all committees’ pages can use the same template, links to those pages need only specify that template and also specify the category. So a URL for the Budget Committee might have the form “…/site/committee_page.php/?cat=budget”. But is there an alternative similar to the URLs for categories of the form “…/site/committee/budget”? Perhaps something using a custom taxonomy?
More generally, is there a reason to avoid using PHP parameters? It seems that using the built-in WordPress page template hierarchy might get me to my 404 page more easily than if I have to recognize an invalid parameter in my page templates.
- The topic ‘Using php parameters in URL vs. custom taxonomy?’ is closed to new replies.