WordPress.org

Forums

Advance WP Query Search Filter
[resolved] Categories Not Hidden in Drop Down (10 posts)

  1. prepoc
    Member
    Posted 1 year ago #

    I'm using drop downs for my search. I have a couple of drop downs and I have a list categories in my "Exclude ID" section. In my drop downs there are 3 categories that show up even though their IDs are listed in the "Exclude ID" section. How can I fix this?

    Prepoc

    http://wordpress.org/extend/plugins/advance-wp-query-search-filter/

  2. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    It's weird.
    Did this happened in the other taxonomy?
    Make sure you enter the right ID in the right taxonomy.

  3. prepoc
    Member
    Posted 1 year ago #

    I don't use the other taxonomy. I only use categories. I went back and double checked that my category IDs are correct and they are correct. Is it possible to do "INCLUDE ID" instead of "EXCLUDE ID"? Maybe it is the number of categories. I have a lot of categories.

    Prepoc

  4. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    Weird, it should not behave like this.

    If you want to use include id, you will need to edit the plugin file, which is not an ideal way.

    If you insist to use include id, you can goto html/search.php to look for the 'exclude' and replace with include

  5. prepoc
    Member
    Posted 1 year ago #

    I have found the issue. I somehow made double of the same categories. This plugin is awesome. Thanks for the work that you've done on it.

  6. naghmeh
    Member
    Posted 1 year ago #

    Hi,
    For me the "Exclude ID" doesn't work neither.
    Would you please tell me how you solved this problem?

    I use categories like this :
    Type:
    -a
    -b
    -c
    Date:
    -d
    -e
    -f
    Status:
    -g
    -h
    -i
    For example, I excluded the IDs of "Date" and "Status" in the "Type" category but in my dropdown list I can still see all the categories and sub categiries.
    I also tried to exclude all the IDs of both categories and sub categories but it doesn't work either.
    Thank you in advance for your help.

  7. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    It shouldn't behave like this.

    Can you try to exclude category that don't have child element? you can create a test category for the try.

  8. naghmeh
    Member
    Posted 1 year ago #

    Thank you for your response. I removed child from categories but it has the same problem. I use "Portfolio plus" as theme and I have "portfolio category" and "portfolio tag".

    You can see from the video on the link below that I tried to set "Date" as "portfolio tag" and it worked but I have still "Type" and "Status" which are in "portfolio category" and have the same problem.

    The link for the video is : http://sdrv.ms/1dvO2Xf

    Please let me know if I can do anything to solve the problem. Thanks

  9. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    I found your problem.
    The exclude ID is in NUMBER format. It is not the name/slugs of the term. You can view the term ID in the term edit page links.

    It look like this

    http://example.com/wp-admin/edit-tags.php?action=edit&taxonomy=type&tag_ID=19&post_type=portfolio

    Notice the 'tag_ID=19', the number 19 is the term id that you should insert in the exclude ID field.

  10. naghmeh
    Member
    Posted 1 year ago #

    Thank you very much.I fixed it as you said and it works perfectly as I expected.
    This plugin is awesome!
    Thanks for your quick help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advance WP Query Search Filter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.