I have been wrapping my brain around categories and attributes but still can not decide what might be best.
I have a woocommerce installation for a travel agency website for singles
To built a structure we have a few fixed elements to keep in mind.
1 age groups (eg: 22-35 year, 35-47 year,…)
2 Destinations
3 Type vacation (skiing, sailing, beach, adventure,…)
4 Period (month of the year)
Since I want to use filters my first thought was to use the age groups as categories and than use the destinations, type vacation and period as attributes. Like this I can make my filters.
But for some reason It doesnt feel good.
Is there a better way to structure my vacations and filters?
Any hints and tips are welcome
Roger
]]>Will appreciate any help you can provide. Thank you…
]]>I wanted to create a category called “Animals,” where the taxonomy would cover different animal groups, like amphibians, reptiles, etc. The issue is that when I create a page within “Animals,” the full URL isn’t domainname/animals/taxonomy1/taxonomy2/pagename
but rather domainname/animals/pagename
.
I’m not sure if I’m explaining this correctly, but the permalink isn’t displaying as expected. I read the documentation and set the rewrite slug to true.
Sorry again, any help is appreciated, thank you. Below are the configured labels:
{"animales":{"name":"animales","label":"Animales","singular_label":"Animal","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","rest_namespace":"","has_archive":"true","has_archive_string":"animales","exclude_from_search":"false","capability_type":"post","hierarchical":"true","can_export":"true","rewrite":"true","rewrite_slug":"animales","rewrite_withfront":"true","query_var":"true","query_var_slug":"animales","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":null,"register_meta_box_cb":null,"supports":["title","editor","thumbnail","custom-fields","page-attributes"],"taxonomies":["layout_category","layout_tag"],"labels":{"menu_name":"","all_items":"","add_new":"","add_new_item":"","edit_item":"","new_item":"","view_item":"","view_items":"","search_items":"","not_found":"","not_found_in_trash":"","parent_item_colon":"","featured_image":"","set_featured_image":"","remove_featured_image":"","use_featured_image":"","archives":"","insert_into_item":"","uploaded_to_this_item":"","filter_items_list":"","items_list_navigation":"","items_list":"","attributes":"","name_admin_bar":"","item_published":"","item_published_privately":"","item_reverted_to_draft":"","item_trashed":"","item_scheduled":"","item_updated":""},"custom_supports":"","enter_title_here":""}}
{"clasificacion":{"name":"clasificacion","label":"clasificaciones","singular_label":"clasificacion","description":"","public":"true","publicly_queryable":"true","hierarchical":"true","show_ui":"true","show_in_menu":"true","show_in_nav_menus":"true","query_var":"true","query_var_slug":"","rewrite":"true","rewrite_slug":"","rewrite_withfront":"1","rewrite_hierarchical":"1","show_admin_column":"false","show_in_rest":"true","show_tagcloud":"false","sort":"false","show_in_quick_edit":"","rest_base":"","rest_controller_class":"","rest_namespace":"","labels":{"menu_name":"","all_items":"","edit_item":"","view_item":"","update_item":"","add_new_item":"","new_item_name":"","parent_item":"","parent_item_colon":"","search_items":"","popular_items":"","separate_items_with_commas":"","add_or_remove_items":"","choose_from_most_used":"","not_found":"","no_terms":"","items_list_navigation":"","items_list":"","back_to_items":"","name_field_description":"","parent_field_description":"","slug_field_description":"","desc_field_description":""},"meta_box_cb":"","default_term":"","object_types":["animales"]}}
]]>Broken Page: https://staging2.mcdanielmetals.com/product/0-100-motorized-fresh-air-damper-filter-access-opening-siemens-acuator/
Working Page: https://staging2.mcdanielmetals.com/product/0-25-manual-fresh-air-damper-2/
Here is a screencast to see what I am talking about: https://app.screencastify.com/v3/watch/fSzwi8DlN1825oI5vf6E
To track down the problem, I started disabling/enabling plugins until I found that Elementor Pro may have been causing the issue. I then built a product template with the standard WordPress block editor and it worked until I added in my SCF taxonomy fields. Then I started to remove my SCF taxonomy fields one by one. When I removed the Accessory Taxonomy Field everything worked again. Therefore, it must be the Accessory Taxonomy field that is not working.
I have checked the Accessory Taxonomy in relation to the other taxonomies that do work and there is no difference in the settings. There are only 14 options for this taxonomy whereas the manufacturer model numbers have 4000+ options.
I can’t figure out why this is breaking some products and not others. Here are other example links if they help.
Not Working:
https://staging2.mcdanielmetals.com/product/14-seimsmic-wind-rated-knocked-down-roof-curb
https://staging2.mcdanielmetals.com/product/14-knocked-down-roof-curb-34
https://staging2.mcdanielmetals.com/product/0-25-motorized-fresh-air-damper-daikin-grey-3
https://staging2.mcdanielmetals.com/product/0-25-downflow-motorized-fresh-air-damper-medium-chassis-daikin-grey
https://staging2.mcdanielmetals.com/product/24-nut-bolt-knocked-down-roof-curb-4
Working:
https://staging2.mcdanielmetals.com/product/24-nut-bolt-knocked-down-roof-curb-5
https://staging2.mcdanielmetals.com/product/downflow-conversion-kit-dedicated-horizontal-rtu
https://staging2.mcdanielmetals.com/product/14-seismic-wind-rated-knocked-down-roof-curb-7
https://staging2.mcdanielmetals.com/product/14-knocked-down-roof-curb-3
https://staging2.mcdanielmetals.com/product/0-25-horizontal-manual-fresh-air-damper-large-chassis-daikin-grey
Is there anyone who can see what the error may be and how to fix it?
]]>Screen recording HERE.
]]>Let’s say I have created a post type: ‘Pets’. And then I created two taxonomies, ‘Cats’ and ‘Dogs’, successfully assigned to the post type ‘Pets’. The ‘Hierarchical’ toggle is on.
Why then, when I create a new post for ‘Pets’, is there no way to simply select ‘Cats’ or ‘Dogs’ to specify what taxonomy my ‘Pets’ post belongs to? Why is there no dropdown selection or checkbox etc to do this?
What I do have is some sort of tag system, which requires me to manually write a tag-like string for either ‘cats’ or ‘dogs’, but this is useless to me when I need my loop builders to be able to show ‘Pets’ posts by taxonomy (eg. show all posts from taxonomy ‘cats’) I don;t want a system which requires me to specify the specific post tag for every taxonomy, updating the loop builder block settings after the publication of every new post.
Yes, I know I could just create a tag that is identical to my taxonomy name ‘Cats’ for ‘Cats’ and ‘Dogs’ for ‘Dogs’ and assign them that way – but this is getting a bit convoluted and I am still wondering why my current hierarchical registration won;’t work.
I’ve been through every advanced setting and I can’t seem to figure this out. I am experiencing the bug outlined here regarding shortcodes, but I rolled back to 6.3.5 while that gets resolved. I can’t imagine that would affect this registration? Perhaps if registered while I began the new installation with the buggy version then rolled back – maybe these registrations were affected? I don’t know.
Help appreciated.
]]>