Code Monkey home page Code Monkey logo

search-filter's Introduction

Ross's GitHub stats

search-filter's People

Contributors

bradaric avatar rmorse avatar sunjunkie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

search-filter's Issues

Horizontal display

Hello @rmorse

First I want to thank you for this awesome work!
I was wondering if there is an option to display filters horizontaly. I mean side by side, like for instance under a wide key-words field ?

Ridom

WordPress query variable is `post_type` not `post_types`

This line in SearchAndFilter::check_posts is not correct:

$this->urlparams .= "post_types=".$post_types;

as WordPress will ignore the post_types variable. Under certain conditions this leads to the wrong template file being selected or even the wrong search results.

I can submit a PR if you like: I suspect tho you may not be happy with the disconnect between your own variable names names and the default names you're later injecting into the URL.

Category + keyword doesn't work

Hello,

I'm using the short with date, format fields etc but only category + keyword never works, I get all post from the category but not with the keyword.

How this can be fixed?

Search and Filter

Hi There

I have been using the Search and Filter Plugib for my Business Directory. I have a regions module set up and I am trying to create a search and filter box that will allow my users to filter by category and location.

It works but the problem is, it includes ALL the regions.
I only want it to show major districts, in other words, only one level of regions. But its also showing all the towns and suburbs as well.

Does anyone know how I can code the S&F plugin so it will only allow customers to choose from the main level of regions instead of displaying all of them?

The plug in I am using is "Business Directory" and the shortcode I am currently using is [searchandfilter fields="wpbdp_category,wpbdm-region" submit_label="Filter" headings="Categories,Region"]

If anyone can help me Id appreciate it SO MUCH!

Thanks! Nicole

[email protected]

Rename the Label "All Categories"

Hi
All Works well but the only thing I will like to change is
<option value="0" selected="selected">All Categories</option> to something like
<option value="0" selected="selected">My Filters </option>

How can I achieved that

empty_search_url doesn't work when post_types is specified

As the post_types parameter always adds the value to the URL the empty_search_url is never called.

Changing line 1072 to this fixed the issue for me.
if($this->urlparams=="/?s=" || $this->urlparams=="/?s=&post_types=" . $post_types)

Not sure though if this will work when you have multiple post types specified.

Feature Request : Option to remove the Clean URLs?

While the "Search & Filter Prefers Clean URLs" is a great feature. It will be really nice to see an option to turn this off. I find that the clean URLs don't always work the way they're meant to on some themes.

Filter Advance Custom Field fields

How can I add filters for fields created using Advanced Custom Field. I tried several different shortcodes but none of them works. Please help

date and daterange showing up?

capture-nodate-range

Assuming that the date and date range are a select list, I'm having some trouble getting the date range field to show up. Currently it just appears to be a simple text input and type="date" but no default value/choices.

Just using your example shortcodes to test:
[searchandfilter fields="search,post_date" types=",date" headings=",Post Date"]

[searchandfilter fields="search,post_date" types=",daterange" headings=",Post Date"]

[searchandfilter fields="search,post_date,category,post_tag,post_format,taxonomyone,taxonomytwo" types=",daterange,select,select,select,select,select" hierarchical=",1" headings=",Post Date,Categories,Tags,Post Format,Taxonomy One,Taxonomy Two" submit_label="Search Events"]

Integration with ACF PRO

On my homepage site ( real estate ) www.mywebsite.com/), I'm using this shortcode:

[searchandfilter taxonomies="search,localita,tipologia,prezzo"]

the layout result is perfect but the query result do not work,.

Localita ( location ) - Tipologia ( type ) - prezzo ( price ) are three Custom field of a specific CPT and are i have created with ACF PRO.

Why it does not work?

Actually i'm using the free version but i'll buy without problem the pro version ( i prefer he lifetime version ) if all can work properly

Thank You for your work

How to upgrade

Customer bought the Pro license, how do I either upgrade or get the install package?

ACF Fields

Is it possible to tap into custom fields created via Advanced Custom Field plugin and sort by those with this?

internationalisation

I'd like to use this very nice plugin in german and translated already the frontend strings (just temporary 'til next update, I know).

do plan to __() all the strings? so I'll give you a hand with the german translation, and maybe the date/time stuff.

cheers rolf

Search only in YEAR

Hello, is it possibile to search only in Year and not complete date ?
thank you

Only search in one category

Is it possible to search only within a single category or set of categories, without including the whole category dropdown?

Custom metabox Filtering

Hello, I have added a custom metabox to my custom post type. I want to fit this by price, as in real estate themes. How can I do it?

Obsolete styles

Hi,

I would like to ask you whether this is really needed in style.css file:

body
{
    display:block;
}

Also, I think it would be better to change .widget-area .searchandfilter li, .widget-area .searchandfilter p to .widget .searchandfilter li, .widget.searchandfilter p as there is no way for you to tell whether the sidebar in a theme is using .widget-area class or not, but you can be 99% sure that the widget is wrapped in .widget class.

Thanks for consideration.

Regards,

Oliver

When I perform a search, I get a 404 error

I added the sort code [searchandfilter fields="search,category,post_tag" types=",checkbox,checkbox" headings=",Categories,Tags"] to a widget, but when I do a search,
The url navigates to: mysite.com/category/business/?tag=make-over-movie+tik-tok&s=test

But I get a 404 url not found on this server error. Why is this happening?

Feature Request : Restrict search to CPT title only

I currently have a CPT for many software connectors and although the description info within the content of those posts is valuable, for search it would be more useful for visitors to search based on post title only. They can always dive deeper in to each post, but currently search yeilds results that may not be related if any of the words in the post types title are within the content area of any given posts.

Consequently, if there is already a way to do this with the S&F plugin, please let me know. I have looked and cannot see any way to do this on the plugin side of things.

Mixed content : Bug or ?

HI there I am using this plugin on a ssl (https). In the console I am getting this kind of error :
Mixed Content: The page at 'https://.com/?s=constable' was loaded over HTTPS, but requested an insecure stylesheet 'http://.com/wp-content/plugins/search-filter/style.css?ver=1'. This content should also be served over HTTPS.
Due to this the stylesheet are not loaded, resulting a poor ul and li elements and other.

Is this a bug or It's just me who have done something terrible ?
I am trying to find out where it is so that i can manually go there and make some if and else for http and https.

Option to change Headings

Hi,

There is an option to add headings to fields in the search & filter plugin: http://docs.designsandcode.com/search-filter/#options

Is there an option to choose which headings to use? I'd like to change them from an <h4> to something else for accessibility purposes. I'd like to control what headings to use so that it doesn't interfere with the heading order of my website. Thanks!


Update: I've taken a peek in the plugin and see that the headings are being output by the get_search_filter_form function - is there no way to hook into this? Thanks.

Only allows for one custom taxonomy.

I am using the plugin to do a drop down field based on multiple custom taxonomies.

Inside of cities there are multiple cities. Same with home type and price.

Only the first taxonomy will be rendered. So in this case, cities being first will show the drop down list of all the cities. Hometype will be a blank drop down field (no options are rendered in the html), same with price. However, if I rearrange them so that "Hometype" is first, it will list all of the home types, but then cities will be an empty drop down.

Problem with generated URL

I have my posts page set to "/journal" on www.mysite.com/wp-admin/options-reading.php.

When I run the Search & Filter plugin, the URLs generated look like this, e.g.

www.mysite.com/category/test_category?s=test_term

But what the plugin needs to generate in my case is:

www.mysite.com/journal/category/test_category?s=test_term

Is there a setting I'm missing? Or is there some way to fix this?

Please help if possible. I'd really like to get your brilliant plugin working! Thank you.

Only show the subcategories on dropdown

On my categories pages (www.mywebsite.com/category/name), I'm using this shortcode:

<?php echo do_shortcode( '[searchandfilter taxonomies="category" submit_label="Search"]' ); ?>
It's possible that the dropdown shows only the sub-categories of the category of the current open page?

For example: Imagine that I'm on the /category/food page (Food is the parent category). This category has three sub-categories: Mexican, French and Italian.

But on my site, I have other parent categories like Travel and Tech and other sub-categories.

When I open a category page, on the drop-down selection, I have all the categories and subcategories on my website, and I only want to show only the three subcategories (Mexican, French and Italian) - the sub-categories associated with the Parent Category of the page that I'm on.

Is it possible?

Thanks

Possible conflict?

My forms show just fine, but I am not getting any results at all.

I am using the following short code.

<?php echo do_shortcode( '[searchandfilter fields="search,category,post_tag" taxonomies="category,post_tag" hierarchical="1" submit_label="Filter"]' ); ?>

I am using a standard loop, and after filtering a category, tag, or search term end up with no results.

Any ideas?

Posts Display

Please can someone help me out.

I want the all posts in all categories to display by default, then website users can use the search and filter and the submit button to trim down the shown items according to their choice.

Please how can this be achieved

advice on adapting to do a live filter

Hi,

I have some experience of html/css/js but am newish to php and completely new to wordpress.

I've been tasked by some people to change the way the search form looks and I think I've done that, though perhaps in a completely hacky way (ie I've just changed the plugin code itself so it'll be overwritten when/if it is updated - though I have a copy).

Anyway, I have also been asked to implement a 'live search/filter'. I already have event handlers on the multiple select checkboxes I'm using, so I can initiate a filter at that point, but I'm wondering how I can query wordpress (it's a database, right?) to get the search/filter results in json so I can then show/hide appropriately.

Any advice on doing this?

Thanks,

Max.

Author filter doesn't work

Hi there,

Could you plesae help me to understand how can i filter by author? I'm using the author in fields array but it doesn't work.

Thanks,

Enable plugin translation via translate.wordpress.org

Some small fixes are needed in order to enable translation of this plugin at translate.wordpress.org:

Reference: https://wp-info.org/tools/checkplugini18n.php?slug=search-filter

  1. Your text-domain must be equal to the plugin slug. In the declaration and in every call to the translation functions, you need to use: "search-filter" instead of "searchfilter".

  2. I didn't search your code to check if you're calling load_plugin_textdomain() correctly. But if you set "Requires at least" in Readme to 4.6 or later (which by now should be a rather safe thing to do), then you don't need that command.

In some circumstances when using multiple drop downs, they are not set correctly

http://wordpress.org/support/topic/retain-filter-selections-after-submit?replies=15

Pasted from WP:

reagantrose

Excellent plugin! Thanks for all your work!

I have one bug/feature request.

I have three taxonomies that I am using to filter by. All use drop down selects. If I select a tax from all 3 drop-downs and click "Submit" the results filter perfectly and it returns the posts just as it should. However, in my drop downs it only retains the first filter's selection. The other two are set to "All".

I think it would be a better user experience if they all were able to retain the selection the user made before clicking submit, in case the user wants to refine her search further.

I hope that was clear. Thanks!

see http://www.send.org/opportunities/ to see what I mean.

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

how to filter by custom meta fields?

I found a plugin that allows me to add custom fields to posts (Age for instance)

Using this filter plugin I would like to filter by Age custom field. How can I archive it?

POST instead of GET ?

First of all, thanks for writing this - this really saved me on a project with a very tight budget. I'm grateful I found it.

If I can ask a possibly stupid question: what is the point of submitting the form via POST and then essentially just re-writing all the variables as a query string? Would it not be simpler to generate the right form fields to submit a GET query initially? Is there something I'm missing?

Does Search & Filter Pro search attachments?

I am currently using the non-pro version of Search & Filter which is great! I want to enable search for documents stored in the media library - am I able to do that by upgrading to Search & Filter Pro?

Only first select box contains data

I used the plugin as written in documentation to display 2 custom taxonomy dropdowns but it's only displaying the first one and the second one is just empty. Can you please fix this.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.