• Resolved okiedokeymc

    (@okiedokeymc)


    Hi,
    I’m going to use this great plugin in another project, because it’s so simple and effective! Thank you again!

    I created a searchform to filter by post_type and custom taxonomy. I definded the post_types that I want to be available in the dropdown menu and additionally chose my custom taxonomy named “gemeinden”. The shortcode I use looks like this: [searchandfilter fields="post_types,gemeinden" post_types="baugrundstuecke,immobilien,gewerbeflaechen" submit_label="finden" headings="Was?,Wo?" all_items_labels="Bitte wählen,Bitte wählen"]

    But – however – the selectbox for “gemeinden” remains empty. Any idea why? I double checked for the correct taxonomy slug and spaces after comma 😉

    https://wordpress.org/plugins/search-filter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter okiedokeymc

    (@okiedokeymc)

    Also, the W3C validation check says the following:
    Bad value for attribute action on element form: Must be non-empty.
    <form action="" method="post" class="searchandfilter">

    Thread Starter okiedokeymc

    (@okiedokeymc)

    Duh. I’m stupid.
    The form hides empty taxonomies.

    Sorry 🙂

    Plugin Author DesignsAndCode

    (@designsandcode)

    No problem 🙂 If you check the docs, you will see there is an option to show empty taxonomies if you wish.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter by post_type & custom tax: custom tax dropdown empty?’ is closed to new replies.