Forums › Forums › Search & Filter Pro › How to apply a taxonomy
- This topic has 7 replies, 2 voices, and was last updated 4 years, 6 months ago by Trevor.
-
Anonymous(Private) June 24, 2020 at 2:36 pm #249909
Hi. Sorry, bear with me. The whole concept of those taxanomies is still quiet confusing to me.
Situation as follows. I need a filter with 3 Options resp. Dropdowns.
dropdown 1 (category or taxanomy) dropdown 2 (category or taxanomy) dropdown 3 (tags)
I guess cross-referencing categories is not such a good idea, so I think taxanomy.
I added a sample in the functions.php, and it shows up when I create the taxanomy filter field.
Here would be my question. How can I add the taxanomy to my post or associate it with a specific post ?
for example, I have dropdown 1 (competence with 4 child points) dropdown 2 (disciplines with 4 child points) and tags as a select array.
I just cant figure out how to apply those taxanomies to a post.
Thanks
Trevor(Private) June 24, 2020 at 3:09 pm #249913The creation of Post Types and Taxonomies, and attaching the two together is a subject really outside the scope of our technical support. To do this manually is of course very possible, but best done by experienced WordPress coders.
Normally, even I do this using a plugin called CPT UI simply because it is easier and adds no more overhead than using functions.php, plus if you change the theme, you keep the CPT UI settings.
I would suggest you do as I do in this regard, and use CPT UI (it is free and available on wordpress.org/plugins).
Then you will see the taxonomy meta boxes when you edit a post.
Our plugin will ‘join’ them for you, as long as, in the General settings tab of the form:
Set
Auto Count
(both settings) toON
And then in the Form UI:
In each field set
Hide Empty
toON
Anonymous(Private) June 24, 2020 at 3:17 pm #249914Hi Trevor. Thanks for your response. I actually did install the CPT UI plugin and played around, but the length of the fields and settings was confusing, so I copied some sample code into the functions.php to see if search & filter even picks it up. It did. I will follow your advice and go with the plugin. Lets see what I can come up with =) Thanks for the info.
Anonymous(Private) June 24, 2020 at 3:31 pm #249918Hmmm. Sorry again. Instead of a field available to choose from for an existing post, I thought It would show up where you have categories and the tag field on the right when you edit a post, it created a entry in the left main wordpress menu in the backend. ?
-
AuthorPosts