Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8194261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:45:47+00:00 2026-06-07T04:45:47+00:00

Ok, I have been searching high and low for an easy way to implement

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:45:49+00:00Added an answer on June 7, 2026 at 4:45 am

    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’.

    <?php 
    
    // CREATE YOUR CUSTOM POST TYPE
    add_action( 'init', 'create_custom_post_type_trail');
    function create_custom_post_type_trail() {
    
        // Set all the labels for your custom post type, as they will appear in the wordpress admin interface.
        $labels = array( 
            'name' => _x( 'Trails', 'trail' ),
            'singular_name' => _x( 'Trail', 'trail' ),
            'add_new' => _x( 'Add New', 'trail' ),
            'add_new_item' => _x( 'Add New Trail', 'trail' ),
            'edit_item' => _x( 'Edit Trail', 'trail' ),
            'new_item' => _x( 'New Trail', 'trail' ),
            'view_item' => _x( 'View Trail', 'trail' ),
            'search_items' => _x( 'Search Trails', 'trail' ),
            'not_found' => _x( 'No Trails found', 'trail' ),
            'not_found_in_trash' => _x( 'No Trails found in Trash', 'trail' ),
            'parent_item_colon' => _x( 'Parent Trail:', 'trail' ),
            'menu_name' => _x( 'Trails', 'trail' ),
        );
    
        // Set all the options for your custom post type - you may need to change some of these
        $args = array( 
            'labels' => $labels,
            'hierarchical' => false,
    
            'supports' => array( 'title', 'editor', 'custom-fields' ),
            'taxonomies' => array(),
            'public' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'menu_position' => 5,
    
            'show_in_nav_menus' => true,
            'publicly_queryable' => true,
            'exclude_from_search' => false,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite' => array('slug' => 'trails', 'with_front' => false),
            'capability_type' => 'post'
        );
    
        register_post_type( 'trail', $args );
    }
    
    // ADD CUSTOM FIELDS TO THE TRAIL CUSTOM POST TYPE
    add_action('wp_insert_post', 'add_custom_trail_fields');
    
    function add_custom_trail_fields($post_id) {
        if ( isset($_GET['post_type']) and $_GET['post_type'] == 'trail' ) {
            add_post_meta($post_id, 'condition', '', true);
            add_post_meta($post_id, 'comments', '', true);
        }
        return true;
    }
    
    // ADD CUSTOM TAXONOMY TO THE TRAIL CUSTOM POST TYPE
    add_action( 'init', 'create_trail_taxonomies' );
    function create_trail_taxonomies(){
    
        // Set all the labels for your custom taxonomy, as they will appear in the wordpress admin interface.
        $labels = array(
            'name' => _x( 'Trail Systems', 'taxonomy general name' ),
            'singular_name' => _x( 'Trail System', 'taxonomy singular name' ),
            'search_items' =>  __( 'Search Member Categories' ),
            'all_items' => __( 'All Member Categories' ),
            'parent_item' => __( 'Parent Trail System' ),
            'parent_item_colon' => __( 'Parent Trail System:' ),
            'edit_item' => __( 'Edit Trail System' ), 
            'update_item' => __( 'Update Trail System' ),
            'add_new_item' => __( 'Add New Trail System' ),
            'new_item_name' => __( 'New Trail System Name' ),
            'menu_name' => __( 'Trail System' ),
        ); 
    
        // Set all the options for your custom taxonomy - you may need to change some of these
        $args = array(
            'labels' => $labels,
            'label'=>'Trail Systems',
            'hierarchical'=>true, // this makes them behave like 'categories' as opposed to like 'tags'
            'rewrite' => array('slug' => 'trail_system', 'with_front' => false),
        );
        register_taxonomy('trail_system', 'trail', $args);
    
    }
    
    /*
    // This is for if you make a mistake, and have to unregister a taxonomy and register it with a new name
    add_action( 'init', 'unregister_taxonomy');
    function unregister_taxonomy(){
        global $wp_taxonomies;
        $taxonomy = 'XXXXXXXXX'; // name of your taxonomy goes here.
        if ( taxonomy_exists( $taxonomy))
            unset( $wp_taxonomies[$taxonomy]);
    }
    */
    
    
    ?>
    

    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:

    <?php
    $fields = get_post_meta( get_the_ID()); // get all custom fields
    echo $fields['comments'][0]; // display 'comments' field
    echo $fields['condition'][0]; // display 'condition' field
    ?>
    

    And again inside The Loop, get your custom taxonomy like this:

    <?php 
    $trail_system = get_the_terms( $post->ID, 'trail_system');
    echo $trail_system;
    ?>
    

    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/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching high and low for a way to paginate an XML
I have been searching high/low on the GooglePlex and here for a sample MVC3
Been searching high and low for this: In Core Data, is there a way
I have been searching high and low for a way to get my silverlight
I have been searching high and low, but I have not found a CSS3
I have been searching high and low on the internet for an answer to
I have been searching high and low for a solution to my problem and
For the last few hours I have been searching high and low for a
I have been searching high and low for answers and I'm at a standstill.
I have been searching for a solution to this and so far found nothing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.