Adding custom filters to filter bar

Home Forums Calendar Products Filter Bar Adding custom filters to filter bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #986292
    Christopher
    Participant

    I just read this: https://theeventscalendar.com/support/forums/topic/adding-to-filter-bar-fields/ and I have a few questions.

    Are you really not supportive of users easily adding custom filters to this bar themselves?
    Can I not see functioning code to do this in functions.php??

    I have never run into this stance with any WordPress premium plugin developer product before.

    I need this feature, because as that person points out, you can not easily search by city or neighborhood text string.

    I’m currently in development.

    Please advise.-C.

    #986314
    Christopher
    Participant

    Nevermind, I was able to find this gist on github which was helpful.: https://gist.github.com/rliverman/f6ee4d51126a005a66ea

    I guess another work-around is to change “venues” to the label to something I need and then do a custom text field addition for venue.

    #986359
    Brian
    Member

    Hi,

    We are supportive of customizations as much as possible, but for the most part they are beyond the support we can provide. I believe that is typical for all premium plugins.

    With the Filter Bar we are not trying to prevent customizations or make it hard, but we also could do better to create some documentation to help with these customizations.

    It is an advanced topic and requires solid php skills to do either way.

    I am glad you found some coding to use as a base for this.

    I am noting this as well to see what I can do to improve the documentation on this and provide a solid tutorial for people to use.

    Good luck on your project.

    Cheers

    #986371
    Christopher
    Participant

    I got something to work. Here is a gist of “registering the taxonomy” and adding the taxonomy filter to the filter bar all in functions.php: https://gist.github.com/chrisdigital/42ba864f9d11090627fe

    Backup your database and functions.php file before messing with them.

    (Do not use another plugin to create taxonomy, just do it “manually” as I show here – I ran into problems using a plugin and just eliminated that as a problem after restoring my database.)

    I hope this helps someone else.

    • This reply was modified 10 years, 9 months ago by Christopher. Reason: Posting resolution
    #986577
    Brian
    Member

    Thanks for sharing the coding.

    I already was able to forward it to someone else looking for this feature.

    Thanks again for sharing.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Adding custom filters to filter bar’ is closed to new replies.