Ok, I have been searching high and low for an easy way to implement this for my client.. ?
Here is what I am trying to accomplish:
http://www.trails2000.org/site/trail_conditions.html
Not sure what to do?? i can easily make a table and let them update.. ?
Or I was looking at GD Star rating and doing a Multi-set ?? But not sure about that either..
Any thing that I am overlooking ?
Thanks!
DON’T do it manually (I gather by ‘manually’, your referring to hard-coding, or having the user edit a table through the WYSIWYG editor?).
As everyone has said, do it custom. You’ll need to use custom post types, custom taxonomies, and custom fields.
If you use a plugin, you should look for a plugin that manages custom post types, custom taxonomies, and custom fields, such as this one: http://magicfields.org/
Having said that, hand-coding it without a plugin isn’t very hard, and should give you a better understanding of how it all fits together.
‘Trail’ should be a custom post type. The ‘Trail’ post type should have a custom taxonomy ‘Trail System’, which would hold ‘Colorado Trail System’, ‘Fort Lewis Trail System’, etc. The ‘Trail’ post type should have custom fields for ‘condition’, and possibly ‘comments’. Though ‘comments’ could instead be stored in the post body.
The client will be able to update the site themselves by adding ‘Trails’ and ‘Trail Systems’ through the WordPress admin interface, similarly to the way they add ‘Posts’ and ‘Categories’.
Make sense?
EDIT: Below explains how to set up the above using raw code (ie, no plugin)
Below is some example code, which should go in functions.php. Once this code is in functions.php, ‘Trails’ should appear in the admin interace, below ‘Posts’. ‘Trail Systems’ should appear in the drop-down menu of ‘Trails’, much like ‘Categories’ do for ‘Posts’. When you add a new ‘Trail’, there should be custom fields below for ‘comments’ and ‘condition’.
Some other stuff you might find useful:
You’ll access your trails at a url like http://www.example.com/?post_type=trail or http://www.example.com/trail or similar, depending on how your permalinks are set up.
In your theme, you can create the files archive-trail.php and single-trail.php for making a custom template for archive/single ‘Trail’ posts.
Inside The Loop, you can access custom post fields like this:
And again inside The Loop, get your custom taxonomy like this:
Lastly, I don’t know if you need to do anything with searching Trails, but if so, check this out: http://thereforei.am/2011/10/28/advanced-taxonomy-queries-with-pretty-urls/