WordPress.org

Ready to get started?Download WordPress

Forums

Search & Filter
[resolved] Category Dropdown (9 posts)

  1. seanocaside21
    Member
    Posted 4 months ago #

    Hi There,

    Great plugin by the way!! 5*

    I was wondering if it possible to change the text "All Categories" as the default text in the category drop-down.

    My categories are arranged by county so i would like the default text to display "All Counties"

    Here is a link to the test site http://gwd-test.flcreative.ie/

    Thanks in advance

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

  2. DesignsAndCode
    Member
    Plugin Author

    Posted 4 months ago #

    Hey seanocaside21

    There is some undocumented functionality - take a look at this thread -

    https://wordpress.org/support/topic/all-product-categories-searches-not-working-as-expected?replies=18

    What you are looking for is the example usage of all_items_labels :)

    Thanks and glad you like :)

  3. seanocaside21
    Member
    Posted 3 months ago #

    Hi Again,

    I refer to our conversation above... I had managed to change the all_itmes_labels to what i wanted and all was working fine.

    However, i have now added in a post_date search option and the category select has defaulted back to "All Categories"

    Here is the shortcode:

    [searchandfilter fields="search,post_date,category" all_items_labels=",All Counties" types=",daterange" headings="Surname, Post Date, County"]

    Any help would be much appreciated.

    Thank you

  4. DesignsAndCode
    Member
    Plugin Author

    Posted 3 months ago #

    Hey seanocaside21

    You need to account for that new field in all_items_labels as it matches the order in fields... so:

    [searchandfilter fields="field1,field2,field3" all_items_labels="All Field 1,All Field 2,All Field3"]

    Basically it needs to match the structure of what you have done with your headings...

    You need to add another comma as your category is now third in the list like this:

    [searchandfilter fields="search,post_date,category" all_items_labels=",,All Counties" types=",daterange" headings="Surname, Post Date, County"]

    Thanks

  5. seanocaside21
    Member
    Posted 3 months ago #

    Thats great!

    Thanks very much for the help

  6. seanocaside21
    Member
    Posted 2 months ago #

    Hi Again,

    I am using the "post-date" function with "date range" activated. I was wondering if it possible to include a heading over both date range options.

    E.g. Date From: over 1st box and Date To: over the 2nd.

    At the moment i can only have a heading the extent of the first box.

    Thanks,

  7. DesignsAndCode
    Member
    Plugin Author

    Posted 2 months ago #

    Hey there seanocaside21, unfortunately this is not possible unless you want to go in and edit the plugin yourself...

    I'll make sure to include this in a future update :)

  8. seanocaside21
    Member
    Posted 2 days ago #

    Hi There,

    I am having an issue with the plugin. I have changed the main search categories to child categories as part of one parent category.

    See: http://irishdeaths.com/

    For example when i pick "Dublin" from the "County" dropdown i am getting a 404 as the plugin searches for http://irishdeaths.com/dublin-deaths/ the correct link is http://irishdeaths.com/death-notices-ireland/dublin-deaths/.

    Is there something i have to update in the shortcode for this to function properly?

    Thanks,

    Seán

  9. seanocaside21
    Member
    Posted 2 days ago #

    Just a note... i figured out why it stopped working.

    I am using Yoast WordPress SEO plugin. In the permalink settings i had selected: "Strip the category base (usually /category/) from the category URL."

    This seems to be the issue. Is there a way of getting the search function to work while also removing the /category/ from the permalink?

    Thanks,

    Sean

Reply

You must log in to post.

About this Plugin

About this Topic