Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Is there a way to hide the "Uncategorized" category from the search options?
This topic contains 4 replies, has 2 voices, and was last updated by Timothy Hall 11 years ago.
- AuthorPosts
- September 8, 2013 at 8:50 pm #664
Please have a look at this screen shot..
I read online that could do this..
There are two tables where WP stores the relationships of categories to posts. These are “wp_term_relationships” and “wp_term_taxonomy”. You can find the ID of the “uncategorized” (probably “1”) in the table “wp_terms”. Then you need only a “delete from ‘wp_term_relationships’ where ‘term_taxonomy_id’=ID_YOU_FOUND” and than “delete from ‘wp_term_taxonomy’ where ‘term_taxonomy_id’=ID_YOU_FOUND”.
But I hope there’s a better way.
Please advise on this.PS: Thanks for the great search plugin.
September 9, 2013 at 6:57 am #665Hello!
Open up the administrator panel of the ajax search pro. On the “Frontend Search Settings” tab there is an option to exclude categories. Drag the uncategorized to the right column and save the search.
Best,
It should do the trick.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 9, 2013 at 5:36 pm #666I don’t see “Uncategorized” in the left column..
September 9, 2013 at 7:53 pm #667Hi!
I have managed to solve the issue right on your site. I will implement this solution to the next version.
Best regards,
Best,
Ernest
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 9, 2013 at 8:33 pm #668Thanks – that did it.
- AuthorPosts
You must be logged in to reply to this topic.