Create chainned menu in Wordpress - wordpress

I'm using WordPress 3.5 as CMS to develop my personal website.
The reason I'm writting, is that I need a way to implement a code or plugin to allow users to navigate through posts using dependent(chained) dropdown lists.
In other words I would like 3 dropdown menus to be dynamically populated based on the selection chosen in the previous dropdown lists.
This would consist of:
Dropdown 1: Category *
Dropdown 2: Sub- Category *
Dropdown 3: List of posts in Sub-Category *
*Dropdown 1 would be pre populated with categories.
*Dropdown 2 would list the sub categories of menu 1 based on the user selection.
*Dropdown 3 would list the posts in the sub category chosen in menu 2.
To help you understand further, in my website I have the Category "TV Series" which has as sub-categories(child) other series, like "Dexter", "CSI:Miami" etc. Series also have other sub-categories(child) the number of seasons, like "Season 1" "Season 2" "Season N". Each season contains the appropriate posts.
The Hierarchy is like this:
Tv Series (main category)
-Dexter
--Season 1
--Season 2
--Season n
-CSI:Miami
--Season 1
--Season 2
--Season n
So for example the dynamic dropdowns I would like to use are the following:
Dropdown 1: Select TV Show (Category)
Dropdown 2: Select Season (sub-category)
Dropdown 3: Select Episode (posts)
I would really appreciate if you could help me with the matter as I was searching the web for the past few days without any results.
Thanks in advance.

I will suggest you to use Multi-Level-Navigation Plugin http://wordpress.org/extend/plugins/multi-level-navigation-plugin/

Related

Google Analytics Ecommerce, viewing Product Performance chart by Product Category Level 1 only

Our WordPress Ecommerce website has first level categories named after US State names.
Under the the category, there are subcategories such as "Packages", "Property", "Annuities" and etc.
So the category structure would look somewhat like this:
Alabama
Packages
Property
Arkansas
Packages
Property
Georgia
Packages
Property
Now, when I run a report, the report automatically shows category by level 2.
Refer to the picture below:
(CONVERSIONS - Ecommerce - Product Performance)
I put secondary dimension as "product category level 1", but the listings are still divided by the "product category level 2".
What I want is to view the items by the Category Level 1. I have been trying to find a way to sort the items by the Product Category Level 1 only, but it always come up as Category level 2.
Is there anyway to view the items only by the category level 1?
You can use the Pivot function of GA to get the result you need. You find it on the right over the table you see:
There you can Pivot the Data by "product category level 1",

How to display parent category with first level childs (Drupal)?

How to display categories with views like this?
Category1
Subcategory1, Subcategory2, Subcategory3...
Category2
Subcategory1, Subcategory2, Subcategory3...
You can do this with help of views too, I have implemented this at my workplace if you need I will provide you the export of my view.
I am showing here, the complete scenario what I understood, with the main points what you required, to achieve the exact view:
- I have one Vocabulary named "Test"
- Test has two Parent categories, category 1 and category 2.
- Each category has subcategories: For example
Category 1
sub category 1
sub category 2
Category 2
sub category 3
sub category 4
Output you want to Display:
Category1
Subcategory1, Subcategory2, Subcategory3...
Category2
Subcategory1, Subcategory2, Subcategory3...
Steps to achieve desired view:
Create a view of Taxonomy Terms for vocabulary "Test"
Add Field "Term Name"
Create Relationship for Taxonomy Parent Term
Add Relation in added field "Term Name".
Add a global PHP field, where you will get parent term tid in $data variable.
Use a simple SELECT query to fetch subcategories using JOIN, tables you need are taxonomy_term_data and taxonomy_term_hierarchy.
show all the subcategories separated by ',' or any other desired separator.
Lastly you need to group by with added field name "Term Name".
After doing all these steps, you will definitely get the desired view result.
Hope this will help you, if you found any issue, free feel to reply.
I can also provide you the export of my view, if you required.

Conditional Logic for getting a list of sub categories in ACF

I am creating a business listings and Advanced Custom Field (ACF) helps me to create the backend form.
The question is, how do I get the sub category of a main category only if I set the condition.
For example,
I have 100s of City names as City Taxonomy
I have 100s of Area names as sub category of the City Taxonomy
I have created a form that includes these 2 fields.
City:_________ (Drop down selection of City Taxonomy)
Area Name:_______ (I want this sub category drop down to show up based on City selection above)
Is this possible? Or does it require coding to make it work?
I have searched enough and I could not find even a premium plugins to support this.
I can simply set these 2 fields to pull data from City Taxonomy but the data entry becomes very tough with hyphen appearing before sub-city Taxonomies and possible duplicate value under different city.
Thanks in advance.

Wordpress Table Plugin?

I am trying to find a plugin that will allow me to input information by category and then display on a page a table by category. For example:
I would have the following data:
String Category
Text 1 Category 1
Text 2 Category 1
Text 3 Category 2
Text 4 Category 3
Text 5 Category 3
But then I want to display this information in a table by category on a webpage. One page may include a table that only displays Category 1. Another page may have a table that displays information from Categories 1, and 2. And so on.
There are many table plugins out there, I am just having a hard time finding something that would allow me to do this.
I guess what I am trying to avoid, is having to create multiple tables for the same type of data (but may be slightly different for each one). I would like to have one central list and then assign it categories and have it display tables based on the categories I want it to display. And by the way it does not have to be a free plugin.

WordPress Taxonomy Hierarchy - Hiding Children

I have a hierarchical taxonomy like this:
CATEGORY 1
SUB CAT 1
Product A is in Sub Cat 1
Product B is in Category 1 and Sub Cat 1
By default, WordPress is going to show me both products when I'm browsing Category 1. I've written a function that will hide the products that are in sub-cats, but what I really want to do is to get a list of all the products that are in Category 1. If I use get_objects_in_term() it pulls everything in the parent and children.
Any ideas to get only the products that are actually a part of Category 1?

Resources