This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

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?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #664
    Timothy HallTimothy 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 MarcinkoErnest 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.

    #666
    Timothy HallTimothy Hall
    Participant

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

    #667
    Ernest MarcinkoErnest 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

    #668
    Timothy HallTimothy 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.