Set limit of upload files for specific category

Hello @ckov1,

Currently there’s no option on our free and pro version but I’m willing to add this feature soon.

However you can still achieve this with custom javascript code.

Try to add this code in your theme/functions.php file or any plugin that will allow to add custom php code. ()

After adding the code you need to change the category and the limit according to your needs. (see here: https://snipboard.io/R3H7tl.jpg)

Make sure to follow the format of the $categories if you want to add more.

Please let me know if you need further assistance.

Glen

  • This reply was modified 6 hours, 49 minutes ago by Glen Mongaya.

Thread Starter
ckov1

(@ckov1)

Hi mate,

many thanks for replay ,

it should be done if i install custom code snippet (plugin) and add both code parts in the system

will try a.s.a.p and will let you know

Thread Starter
ckov1

(@ckov1)

I try to add this code on 2 ways, (via plugin and in functions.php) but seems that some part is missing or not work

in meanwhile i change [‘accessories’,’decor’]; into [‘kalendar’,’kalendar’]; create test product with same category [‘kalendar’,’kalendar’]; (1st one is parent) i see that funcitons is called in back but it not allow to upload more then 2 files like is default on other categories

Okay, let me check.

Can you send me the link of the test product?

[‘kalendar’,’kalendar’];

This should be unique like [‘cat-1′,’cat-2′,’cat-3’]

Thread Starter
ckov1

(@ckov1)

test

if we can continue via e-mail will be ok also

Also, you don’t need to add it twice. (as you can see here – https://snipboard.io/FnpRBE.jpg)

Thread Starter
ckov1

(@ckov1)

Excellent mate, job is done thanks to you

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer