Up to 50 percent off

Different Post Form for different Categories.

This topic contains 9 reply and 3 voices, and was last updated by Sekander Badsha 10 years ago
Viewing 9 Posts - 1 through 9 (of 9 total)
Author Posts
August 24, 2014 at 3:23 pm 25732
Sekander Badsha 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. Thanks
August 25, 2014 at 5:56 pm 25827
Sekander Badsha Sekander Badsha

Hello Roxanne,
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
Megan Megan

Hello Sekander,

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?

Thanks!
Megan

October 12, 2014 at 4:24 pm 28212
Sekander Badsha Sekander Badsha

Hello Megan,
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
Megan Megan

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
Sekander Badsha Sekander Badsha

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
Megan Megan

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
Sekander Badsha Sekander Badsha

Hello Megan,

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
Megan Megan

Hello Sekander,

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?

Thanks,
Megan

October 21, 2014 at 4:42 pm 28810
Sekander Badsha Sekander Badsha

Hello Meagn,

Sorry for the misunderstanding. If you want to set a WooCommerce product category as default, then you have to use the action hook and wp_set_post_category.

You can read the following documents to get a better idea.

http://docs.wedevs.com/action-hook-field/
http://codex.wordpress.org/Function_Reference/wp_set_post_categories

If you are not familiar with codes, you might consider hiring a developer.

Thank you 🙂

Viewing 9 Posts - 1 through 9 (of 9 total)