This topic contains 16 reply and 3 voices, and was last updated by MDelcour 6 years, 1 month ago
Viewing 15 Posts - 1 through 15 (of 16 total)
Author Posts
May 29, 2013 at 10:35 am 4305
MDelcour Hi, We have a website with a lot of categories and it will not stay with only these categories. So the solution of excluding certain categories is not a solution for us. So is it possible you can add a option of only showing the categories with a certain parent ID? I'm talking about the category field (dropdown menu) of a form. So if i have the following structure:
  • Jobstype(parent)
    • ICT Executive(child)
    • ICT Executive(child)
    • ICT Executive(child)
    • ICT Executive(child)
  • News
  • Others
I only want to show the results of the subcategories of Jobtype.
May 30, 2013 at 3:51 pm 4341
Tareq Hasan Tareq Hasan

Sorry for replying late. I am not sure if it’ll work or not, open render-form.php and see the function taxonomy in line 1213, you’ll see there are some exclude option in line 1243, 1266. Change the exclude text to include (not the variables). See if it works.

June 3, 2013 at 11:24 am 4461
MDelcour MDelcour

Hello Tareq,

It is no problem. I managed to change it to include and it worked to show the category you fill in. But my question was if it was possible to insert a parent ID, so that all its sub categories show in the list. not the filled in category id but the categories which are a sub category of that category.

June 3, 2013 at 12:29 pm 4462
MDelcour MDelcour

Here I am again, while testing out I found the solution. I changed the “include” to “child_of”.

But still my question remains, can you add a checkbox or something so that it uses parent id or simply the category id of categories you want to show/not show. Because my guess is that when i update the plugin, my changes will be replaced.

June 3, 2013 at 4:42 pm 4471
Tareq Hasan Tareq Hasan

Yes, your changes will be lost if you update. There are many possibilities and many combinations might be possible if you I put any checkbox or any option. I need to thin about it 🙂

June 4, 2013 at 7:41 am 4530
MDelcour MDelcour

Hello Tareq,

Oh than that’s not a solution for us. You could make it this way:

a drop down selection above the field of the category with the following values: insert,exclude,child of

than in the code you could do the following:
‘class’ => $taxonomy,
$categoryselection => $exclude,
‘selected’ => $selected,

simply replacing the text with a variable.

I hop you can implement this.

June 4, 2013 at 10:51 pm 4557
Tareq Hasan Tareq Hasan

Thanks for the idea

June 28, 2013 at 9:05 pm 5399
ProUser ProUser

I need this same exact feature as described in the original post. I need to be able to set this option in the frontend form editor just as we currently can set excluded categories.

My category structure will be continuously growing and I can’t keep tracking categories added by other authors and then add those IDs to the exclude field.

Thanks for your attention to this issue and for writing a great plugin! 🙂

July 1, 2013 at 7:18 am 5440
MDelcour MDelcour

Yes would be nice if this would be implemented!

September 4, 2013 at 7:31 pm 7778
MDelcour MDelcour

Tareq Will this feature be included some day?

September 4, 2013 at 11:22 pm 7783
Tareq Hasan Tareq Hasan

Sorry for the delay as the development is currently paused. It’ll be started again and this feature is on the to-do list 🙂

September 5, 2013 at 12:34 pm 7821
MDelcour MDelcour

Aaah ok Tareq, well great to hear ;)!

September 19, 2013 at 12:12 am 8295
Tareq Hasan Tareq Hasan

Version 2.1.8 has just been released and this feature is included 🙂

September 19, 2013 at 7:41 pm 8316
MDelcour MDelcour This reply has been marked as private.
September 19, 2013 at 7:41 pm 8317
MDelcour MDelcour This reply has been marked as private.
September 20, 2013 at 1:38 am 8326
Tareq Hasan Tareq Hasan

I think the meta fields value is overloaded and it exceeds it’s capacity. That’s why it shows nothing. May be you’ve a big form. This is serialized data and unserializing it, I got false. So there’s the problem.

Viewing 15 Posts - 1 through 15 (of 16 total)