• Dear All,

    I usually hand code websites, and this is also the first time I am using wordpress and am using a wootheme for a client’s website.

    The client’s website is going to be architected in the following manner:
    1- Home
    # Links in the top navigation to aboutus,contact,products
    # There will be 2 products for the time being, and they need to appear as a drop down from the products nav button
    # Basic sliders etc on the homepage

    2- Product Page
    # Now each product will have characteristics like location, pricing details, options available, why product A, contents, etc
    # The characterstics can be visited on different pages by clicking on a sub-menu created individually for each of the products
    # The client would like to add products on his own later on [is willing to go thru the learning curve]

    My question is how links, categories and pages should be used for putting products together. So aboutus, contact could be pages? With each product being a category? With each characteristic being a sub category? And each post will contain the details of the characteristic?

    But how do I ensure that the sub categories (characteristics) appear as a horizontal/vertical menu under the main site menu for each product?

    Any help would be much appreciated. I am comfortable with basic HTML and CSS. But I can follow directions accurately 🙂

    Best wishe

Viewing 6 replies - 1 through 6 (of 6 total)
  • Here’s what I would do in your situation:

    About Us: Page
    Contact: Page
    Products: Category

    Once this is set up you can create each product page by adding a new post and associating with the Products category. Each post would contain the following information: “pricing details”, “why product A” and “contents”. For “Location” and “Options Available” I would employ the use of Custom Taxonomies. These can be created by placing the following code into your theme’s functions.php file:

    add_action( 'init', 'mf_register_taxonomies' );
    add_filter( 'the_content', 'mf_list_locations' );
    add_filter( 'the_content', 'mf_list_options' );
    function mf_register_taxonomies() {
    	register_taxonomy( 'location', 'post', array(
    		'hierarchical' => false,
    		'label' => 'Location',
    		'update_count_callback' => $tax['update_count_callback'],
    		'query_var' => 'location',
    		'rewrite' => 'location'
    		) );
    	register_taxonomy( 'options-available', 'post', array(
    		'hierarchical' => false,
    		'label' => 'Options Available',
    		'update_count_callback' => $tax['update_count_callback'],
    		'query_var' => 'options-available',
    		'rewrite' => 'options-available'
    		) );
    }
    function mf_list_locations( $c ) {
    	global $post;
    	return $c . get_the_term_list( $post->ID, 'location', 'Locations: ', ', ', '' );
    }
    function mf_list_options( $c ) {
    	global $post;
    	return $c . get_the_term_list( $post->ID, 'options-available', 'Available Options: ', ', ', '' );
    }

    This code will automatically create new inteface panels on you add/edit posts screen as well as automatically display the custom taxonomy terms at the bottom of each post’s “content”.

    Hope this helps,
    -Mike

    Thread Starter mohakgambhir

    (@mohakgambhir)

    hello,

    thanks mfields!

    what if the characteristics were to be separate pages which is what i meant by a sub category…
    so when you reach the page for product 1, a sub navigation for the features for the product are listed as a navigation?

    Merry christmas!

    mohak.gambhir,

    I would refrain from making the characteristics subcategories due to the fact that.

    1. Your category interface in the admin section will become cluttered really fast making editing of categories somewhat confusing.

    2. If you were to use hierarchical categories, navigation within sub categories can become confusing. I have found that it is best to put only one post in one category, although WordPress supports a many to many relationship between posts and categories, I have experienced small, annoying issues with this in the past therefore I just don’t do it anymore.

    IMO, Making the characteristics different pages is a really bad idea. Pages do not fit into the category hierarchy at all and pages are not naturally associated with posts in any way. For best results, please try the solution that I outlined above, I believe that it will solve most if not all of you problems and make it easier for your client to both add new products and develop and understanding for how his website works.

    Now each product will have characteristics like location, pricing details, options available, why product A, contents, etc

    Saving the Characteristics as Taxonomies allows for easy editing and updating by the client as the taxonomy interfaces display on the page where the client will create or edit a product post.

    The characterstics can be visited on different pages by clicking on a sub-menu created individually for each of the products.

    This submenu is created automatically for each post that has a characteristic taxonomy applied to it. When a user clicks one of the links that it produces, they will be brought to a page (not a WordPress “page”, but a dynamic page) where you can add a description for the term (location, option, etc). Also, below this description, there will be a list of products that have this term associated.

    The client would like to add products on his own later on [is willing to go thru the learning curve]

    I believe that my solution outlines the best way for you to execute your scenario with the tolls that WordPress offers by default. In my experience, it is best to try to setup your site by Working with WordPress as much as possible.

    Hope this helps to clarify,
    -Mike

    Thread Starter mohakgambhir

    (@mohakgambhir)

    A very happy new year to everyone 🙂

    Just highlighting my issue with taxonomies:

    – There would be significant content that would go in each of the sub characteristics. A page-full in most cases.

    – Navigation at the user-level can get a little complex in absense of subpage/category/drop down navigation etc.

    – For beginners we have 2 products, and slowly they would get to say 50 products. Each of the sub characteristics for every product might be different because of the product or needs.

    Would it make sense to go with just pages? But that would mean the edit page view in admin would be cluttered with say 50×5=250 pages when the site gets mature.

    Do you agree?

    Hope you could guide on the best practise in this case.

    PS – do you undertake freelance projects?

    Thread Starter mohakgambhir

    (@mohakgambhir)

    BTW – Here is what the sitemap may look like

    http://dakshta.org/images/wordpress_sitemap.png

    – There would be significant content that would go in each of the sub characteristics. A page-full in most cases.

    This should be no issue as each taxonomy term has both a title and content box with which you can add content. it is rather easy to enable TinyMCE with a little tweaking of the Category Description Editor Plugin. I think that it would be rather easy to drop in the media interface links as well.

    Navigation at the user-level can get a little complex in absense of subpage/category/drop down navigation etc.

    I do not see why you couldn’t code the navigation to work how you need it to. I know that WordPress doesn’t support this out of the box, but it shouldn’t be too complicated.

    For beginners we have 2 products, and slowly they would get to say 50 products. Each of the sub characteristics for every product might be different because of the product or needs.

    I do not understand how the characteristic could change depending on the product it is associated to. I mean if the characteristic is “Location” and “Location” = “123 Test Street, City, State, Zip” and there are 2 products with this characteristic, that means that both products are associated to this “Location” and there should be absolutely no reason to change it. If a different Location is needed. add a new taxonomy term, if the address has changed, change the taxonomy term and all of it’s associated posts will be updated.

    Would it make sense to go with just pages? But that would mean the edit page view in admin would be cluttered with say 50×5=250 pages when the site gets mature.

    In my opinion the answer would be “no” and you highlight one of the reasons already. Using posts with categories allow the user to filter by category association in the Administration panels – which I use quite frequently and is a blessing.

    Also, there is no built in mechanism for “Previous Page” & “Next Page” on the front-end…

    Pages can be pretty easy to work with in all other cases, but they are just as easy as posts in my experience. I Used to do all of my custom work with pages until I noticed how cumbersome they can be on larger projects. These days, most of the sites I create have hundreds of posts but usually less than 10 pages…

    PS – do you undertake freelance projects?

    Only with clients that I can meet in person. Online, I do only consulting, but me thinks that it is against forum rules to discuss these things here 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sub menu, categories questions’ is closed to new replies.