August 24, 2014 at 3:23 pm #25732
RoxanneMemberPost count: 24
I want to show different post form for different categories and for different post formats? How to do it?
My theme supports post formats.
I want to show the form in such a ways.
Post Format: First Select it and it will display categories below.
Category: The below post form should be displayed using AJax. Form must be dependent on category. i.e different form for different categories.
ThanksAugust 25, 2014 at 5:56 pm #25827
You can get this feature using the conditional logic. Conditional logic works with other elements. Like you can check, if Anybody selects post type “Image”, so the category would be “Gallery”.
Give it a try and let me know the result.October 1, 2014 at 2:53 pm #27852
I use post type: product.
I also want to use: Default Post Category.
But this option doesn't show product categories, only post categories.
Is there a way to make this work?
MeganOctober 12, 2014 at 4:24 pm #28212
You can select post type: product and default product category in form settings. And to show product categories, you have to use “product_cat” custom taxonomy and mark it as a woocommerce attribute.October 13, 2014 at 12:33 pm #28254
Yes I understand i can select post type: product.
But when i do this i can't set a default product category in settings. There only appear ‘post categories' to select, not product categories. I need to select a default product category….October 17, 2014 at 12:19 am #28549
Please provide your login details using this form http://wedevs.com/provide-login-details/ and do not forget to mention the link of this thread.
And please reply here
1. the default category you want to set
2. The form name
3. The page you used to embed the form
I will login to your site and set the form accordingly.
Thank you 🙂October 17, 2014 at 12:27 am #28550
1. Default category: Golfclubs
2. Form name: Golfclubs
3. Page: http://golfscene.nl/golfartikelen-verkopen/advertentie-golfclubs/
1. Default category: Diversen
2. Form name: Diversen
3. Page: http://golfscene.nl/golfartikelen-verkopen/advertentie-diversen/
1. Default category: Schoenen
2. Form name: Schoenen
3. Page: http://golfscene.nl/golfartikelen-verkopen/advertentie-schoenen/
Hope you can fix it! Thanks! 🙂October 19, 2014 at 12:28 pm #28659
I have clearly said above to use “product_cat” to display product categories. But you used the normal categories taxonomy.
And you wanted to set a default category named Golf Clubs, but you did not have any category on that name. So I made one.
And now your product categories are displaying fine. Please check.
Thank you 🙂October 19, 2014 at 1:16 pm #28660
You don't understand me, you made a POST categorie “golf clubs”, i don't want a POST categorie, i want the PRODUCT categorie set as default categorie, but i think that's impossible????
Right now the product that people will upload with that form isn't set under the product ‘golfclubs' but under the post ‘golfclub'… you understand me?
MeganOctober 21, 2014 at 4:42 pm #28810
Sorry for the misunderstanding. If you want to set a WooCommerce product category as default, then you have to use the action hook and
You can read the following documents to get a better idea.
If you are not familiar with codes, you might consider hiring a developer.
Thank you 🙂
The topic ‘Different Post Form for different Categories.’ is closed to new replies.