Is there a way to hide the "Uncategorized" category from the search options?

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 Timothy Hall 10 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #664
    Timothy Hall
    Timothy Hall
    Participant

    Please have a look at this screen shot..
    Is there a way to do this..?

    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.

    #665
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hello!

    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.
    It should do the trick.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #666
    Timothy Hall
    Timothy Hall
    Participant

    I don’t see “Uncategorized” in the left column..
    This is what I am finding in the back end area

    #667
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I have managed to solve the issue right on your site. I will implement this solution to the next version.

    Best regards,
    Ernest

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #668
    Timothy Hall
    Timothy Hall
    Participant

    Thanks – that did it.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.